Symfony\Component\Routing\Loader\AnnotationClassLoader::load
Loads from annotations from a class.
Signature
public function load(string
$class,
[string|null
$type = null] )
Parameters
$class
— string- A class name
$type
— object- The resource type
Returns
- RouteCollection
- A RouteCollection instance
Errors/Exceptions
-
InvalidArgumentException
- When route can't be parsed