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