comparison vendor/symfony/routing/Loader/AnnotationClassLoader.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 1fec387a4317
children 129ea1e6d783
comparison
equal deleted inserted replaced
15:e200cb7efeb3 16:c2387f117808
117 $this->addRoute($collection, $annot, $globals, $class, $method); 117 $this->addRoute($collection, $annot, $globals, $class, $method);
118 } 118 }
119 } 119 }
120 } 120 }
121 121
122 if (0 === $collection->count() && $class->hasMethod('__invoke') && $annot = $this->reader->getClassAnnotation($class, $this->routeAnnotationClass)) { 122 if (0 === $collection->count() && $class->hasMethod('__invoke')) {
123 $globals['path'] = ''; 123 foreach ($this->reader->getClassAnnotations($class) as $annot) {
124 $globals['name'] = ''; 124 if ($annot instanceof $this->routeAnnotationClass) {
125 $this->addRoute($collection, $annot, $globals, $class, $class->getMethod('__invoke')); 125 $globals['path'] = '';
126 $globals['name'] = '';
127
128 $this->addRoute($collection, $annot, $globals, $class, $class->getMethod('__invoke'));
129 }
130 }
126 } 131 }
127 132
128 return $collection; 133 return $collection;
129 } 134 }
130 135