RouteCollectionBuilder::import()

RouteCollectionBuilder import(mixed $resource, string|null $prefix = '/', string $type = null)

Import an external routing resource and returns the RouteCollectionBuilder.

$routes->import('blog.yml', '/blog');

Parameters

mixed $resource
string|null $prefix
string $type

Return Value

RouteCollectionBuilder

Exceptions

FileLoaderLoadException
doc_Symfony
2016-10-28 06:30:59
Comments
Leave a Comment

Please login to continue.