A RouteCollection represents a set of Route instances as a tree structure.
When adding a route, it overrides existing routes with the same name defined in the instance or its children and parents.
@author Fabien Potencier <fabien@symfony.com> @author Tobias Schultze <http://tobion.de>
@api
Expanded class hierarchy of RouteCollection
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RouteCollection:: |
private | property | ||
RouteCollection:: |
private | property | ||
RouteCollection:: |
private | property | ||
RouteCollection:: |
private | property | ||
RouteCollection:: |
public | function | Adds a route. | |
RouteCollection:: |
public | function | Adds a route collection to the current set of routes (at the end of the current set). | |
RouteCollection:: |
public | function | Adds a prefix to all routes in the current set. | |
RouteCollection:: |
public | function | Adds a resource for this collection. | |
RouteCollection:: |
public | function | Returns all routes in this collection and its children. | |
RouteCollection:: |
public | function | Gets the number of Routes in this collection. | |
RouteCollection:: |
public | function | Gets a route by name defined in this collection or its children. | |
RouteCollection:: |
public | function | Gets the current RouteCollection as an Iterator that includes all routes and child route collections. | |
RouteCollection:: |
public | function | Gets the parent RouteCollection. | |
RouteCollection:: |
public | function | Returns the prefix that may contain placeholders. | |
RouteCollection:: |
public | function | Returns an array of resources loaded to build this collection. | |
RouteCollection:: |
public | function | Gets the root RouteCollection of the tree. | |
RouteCollection:: |
private | function | Checks whether the given RouteCollection is already set in any child of the current instance. | |
RouteCollection:: |
public | function | Removes a route or an array of routes by name from all connected collections (this instance and all parents and children). | |
RouteCollection:: |
private | function | Removes a route by name from this collection and its children recursively. | |
RouteCollection:: |
private | function | Sets the parent RouteCollection. It's only used internally from one RouteCollection to another. It makes no sense to be available as part of the public API. | |
RouteCollection:: |
public | function | ||
RouteCollection:: |
public | function | Constructor. |