@@ -7,7 +7,6 @@ |
||
7 | 7 | use Doctrine\Common\Annotations\Reader; |
8 | 8 | use FrankDeJonge\SymfonyI18nRouting\Routing\Annotation\I18nRoute; |
9 | 9 | use function join; |
10 | -use LogicException; |
|
11 | 10 | use ReflectionClass; |
12 | 11 | use ReflectionMethod; |
13 | 12 | use Symfony\Component\Routing\Loader\AnnotationClassLoader; |
@@ -197,6 +197,9 @@ |
||
197 | 197 | return $globals; |
198 | 198 | } |
199 | 199 | |
200 | + /** |
|
201 | + * @param I18nRoute $annot |
|
202 | + */ |
|
200 | 203 | protected function configureRoute(Route $route, ReflectionClass $class, ReflectionMethod $method, $annot) |
201 | 204 | { |
202 | 205 | $route->setDefault('_controller', $class->name . '::' . $method->getName()); |
@@ -131,6 +131,9 @@ |
||
131 | 131 | } |
132 | 132 | } |
133 | 133 | |
134 | + /** |
|
135 | + * @param string $file |
|
136 | + */ |
|
134 | 137 | protected function parseImport(RouteCollection $collection, array $config, $path, $file) |
135 | 138 | { |
136 | 139 | $type = isset($config['type']) ? $config['type'] : 'i18n_routes'; |