Skip to content

Commit d662423

Browse files
Merge branch '3.4' into 4.3
* 3.4: [Routing] Add a param annotation for $annot. [DI] fix docblock Add missing translations for Armenian locale [Process] Doc block backport. Fix some docblocks.
2 parents 04dfff7 + 166342c commit d662423

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)