Skip to content

Commit

Permalink
zendframework#186 apply to be aware of multidimensional featureSet
Browse files Browse the repository at this point in the history
  • Loading branch information
alextech committed Nov 9, 2016
1 parent 99344c6 commit 38a2d5d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/TableGateway/Feature/FeatureSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,13 @@ public function addFeature(AbstractFeature $feature)

public function apply($method, $args)
{
foreach ($this->features as $feature) {
if (method_exists($feature, $method)) {
$return = call_user_func_array([$feature, $method], $args);
if ($return === self::APPLY_HALT) {
break;
foreach ($this->features as $featureClass => $featureSet) {
foreach($featureSet as $feature) {
if (method_exists($feature, $method)) {
$return = call_user_func_array([$feature, $method], $args);
if ($return === self::APPLY_HALT) {
break;
}
}
}
}
Expand Down

0 comments on commit 38a2d5d

Please sign in to comment.