CollectionConfigurator
class CollectionConfigurator
Traits
Methods
$this
schemes(array $schemes)
Sets the schemes (e.g. 'https') this route is restricted to.
from RouteTrait
$this
methods(array $methods)
Sets the HTTP methods (e.g. 'POST') this route is restricted to.
from RouteTrait
$this
controller(callable|string $controller)
Adds the "_controller" entry to defaults.
from RouteTrait
__construct(RouteCollection $parent, string $name, CollectionConfigurator $parentConfigurator = null, array $parentPrefixes = null)
No description
__destruct()
No description
collection($name = '')
Creates a sub-collection.
$this
prefix(string|array $prefix)
Sets the prefix to add to the path of all child routes.
Details
final $this
schemes(array $schemes)
Sets the schemes (e.g. 'https') this route is restricted to.
So an empty array means that any scheme is allowed.
final $this
methods(array $methods)
Sets the HTTP methods (e.g. 'POST') this route is restricted to.
So an empty array means that any method is allowed.