Skip to content

Commit

Permalink
fix menus option allowed types
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkrovitch committed Nov 23, 2016
1 parent 56c7d6f commit 606f12d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Action/Configuration/ActionConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected function configureDefaultOptions(OptionsResolver $resolver)
// default criteria used to load entities
'criteria' => [],
'filters' => [],
'menu' => [],
'menus' => [],
'batch' => false,
]);
}
Expand Down Expand Up @@ -140,7 +140,10 @@ protected function setAllowedTypes(OptionsResolver $resolver)
->setAllowedTypes('icon', 'string')
->setAllowedTypes('criteria', 'array')
->setAllowedTypes('filters', 'array')
->setAllowedTypes('menu', 'array')
->setAllowedTypes('menus', [
'array',
'boolean',
])
;
}

Expand All @@ -157,7 +160,7 @@ protected function configureNormalizers(OptionsResolver $resolver)
->setNormalizer('route', $this->getRouteNormalizer())
->setNormalizer('load_strategy', $this->getLoadStrategyNormalizer())
->setNormalizer('criteria', $this->getCriteriaNormalizer())
->setNormalizer('menu', $this->getMenuNormalizer())
->setNormalizer('menus', $this->getMenuNormalizer())
->setNormalizer('batch', $this->getBatchNormalizer())
;
}
Expand Down

0 comments on commit 606f12d

Please sign in to comment.