function AttributeClassLoader::getAttributes
Return value
iterable<int, RouteAttribute>
1 call to AttributeClassLoader::getAttributes()
- AttributeClassLoader::load in vendor/
symfony/ routing/ Loader/ AttributeClassLoader.php
File
-
vendor/
symfony/ routing/ Loader/ AttributeClassLoader.php, line 362
Class
- AttributeClassLoader
- AttributeClassLoader loads routing information from a PHP class and its methods.
Namespace
Symfony\Component\Routing\LoaderCode
private function getAttributes(\ReflectionClass|\ReflectionMethod $reflection) : iterable {
// to be replaced in Symfony 8.0 by $this->routeAttributeClass
foreach ($reflection->getAttributes($this->routeAnnotationClass, \ReflectionAttribute::IS_INSTANCEOF) as $attribute) {
(yield $attribute->newInstance());
}
}