RouteCollection::setCondition()

setCondition(string $condition) Sets a condition on all routes. Existing conditions will be overridden. Parameters string $condition The condition

RouteCollection::remove()

remove(string|array $name) Removes a route or an array of routes by name from the collection. Parameters string|array $name The route name or an array of route names

RouteCollection::getResources()

ResourceInterface[] getResources() Returns an array of resources loaded to build this collection. Return Value ResourceInterface[] An array of resources

RouteCollection::getIterator()

ArrayIterator|Route[] getIterator() Gets the current RouteCollection as an Iterator that includes all routes. It implements \IteratorAggregate. Return Value ArrayIterator|Route[] An \ArrayIterator object for iterating over routes See also all()

RouteCollection::count()

int count() Gets the number of Routes in this collection. Return Value int The number of routes

RouteCollection::all()

Route[] all() Returns all routes in this collection. Return Value Route[] An array of routes

RouteCollection::addResource()

addResource(ResourceInterface $resource) Adds a resource for this collection. Parameters ResourceInterface $resource A resource instance

RouteCollection::addRequirements()

addRequirements(array $requirements) Adds requirements to all routes. An existing requirement under the same name in a route will be overridden. Parameters array $requirements An array of requirements

RouteCollection::addPrefix()

addPrefix(string $prefix, array $defaults = array(), array $requirements = array()) Adds a prefix to the path of all child routes. Parameters string $prefix An optional prefix to add before each pattern of the route collection array $defaults An array of default values array $requirements An array of requirements

RouteCollection::addOptions()

addOptions(array $options) Adds options to all routes. An existing option value under the same name in a route will be overridden. Parameters array $options An array of options