@@ -3,13 +3,11 @@ |
||
| 3 | 3 | namespace LAG\AdminBundle\Factory; |
| 4 | 4 | |
| 5 | 5 | use Exception; |
| 6 | -use LAG\AdminBundle\Admin\Exception\AdminException; |
|
| 7 | 6 | use LAG\AdminBundle\Configuration\ActionConfiguration; |
| 8 | 7 | use LAG\AdminBundle\Configuration\ApplicationConfiguration; |
| 9 | 8 | use LAG\AdminBundle\Configuration\ApplicationConfigurationStorage; |
| 10 | 9 | use LAG\AdminBundle\Field\FieldInterface; |
| 11 | 10 | use LAG\AdminBundle\Field\TwigAwareFieldInterface; |
| 12 | -use LAG\AdminBundle\Field\TwigAwareInterface; |
|
| 13 | 11 | use LAG\AdminBundle\Field\TranslatorAwareFieldInterface; |
| 14 | 12 | use Symfony\Component\OptionsResolver\OptionsResolver; |
| 15 | 13 | use Symfony\Component\Translation\TranslatorInterface; |
@@ -135,12 +135,10 @@ |
||
| 135 | 135 | |
| 136 | 136 | if (LAGAdminBundle::LOAD_STRATEGY_NONE === $strategy) { |
| 137 | 137 | return; |
| 138 | - } |
|
| 139 | - else if (LAGAdminBundle::LOAD_STRATEGY_MULTIPLE === $strategy) { |
|
| 138 | + } else if (LAGAdminBundle::LOAD_STRATEGY_MULTIPLE === $strategy) { |
|
| 140 | 139 | $entities = $dataProvider->getCollection($admin, $event->getFilters()); |
| 141 | 140 | $event->setEntities($entities); |
| 142 | - } |
|
| 143 | - else if (LAGAdminBundle::LOAD_STRATEGY_UNIQUE === $strategy) { |
|
| 141 | + } else if (LAGAdminBundle::LOAD_STRATEGY_UNIQUE === $strategy) { |
|
| 144 | 142 | $requirements = $actionConfiguration->getParameter('route_requirements'); |
| 145 | 143 | $identifier = null; |
| 146 | 144 | |