Skip to content

Commit 166342c

Browse files
committed
[Routing] Add a param annotation for $annot.
1 parent 9d20806 commit 166342c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Loader/AnnotationClassLoader.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Symfony\Component\Config\Loader\LoaderInterface;
1616
use Symfony\Component\Config\Loader\LoaderResolverInterface;
1717
use Symfony\Component\Config\Resource\FileResource;
18+
use Symfony\Component\Routing\Annotation\Route as RouteAnnotation;
1819
use Symfony\Component\Routing\Route;
1920
use Symfony\Component\Routing\RouteCollection;
2021

@@ -129,6 +130,10 @@ public function load($class, $type = null)
129130
return $collection;
130131
}
131132

133+
/**
134+
* @param RouteAnnotation $annot or an object that exposes a similar interface
135+
* @param array $globals
136+
*/
132137
protected function addRoute(RouteCollection $collection, $annot, $globals, \ReflectionClass $class, \ReflectionMethod $method)
133138
{
134139
$name = $annot->getName();

0 commit comments

Comments
 (0)