Symfony\Component\Routing\Loader\AnnotationFileLoader::load
Loads from annotations from a file.
Signature
public function load(string
$file,
[string|null
$type = null] )
Parameters
$file
— string- A PHP file path
$type
— object- The resource type
Returns
- RouteCollection
- A RouteCollection instance
Errors/Exceptions
-
InvalidArgumentException
- When the file does not exist or its routes cannot be parsed