Symfony\Component\Routing\Matcher\Dumper\DumperPrefixCollection
Prefix tree of routes preserving routes order.
- Author: Arnaud Le Blanc <arnaud.lb@gmail.com>
Synopsis
class DumperPrefixCollection
extends DumperCollection
{
- // members
- private string $prefix;
- // methods
- public string getPrefix()
- public void setPrefix()
- public DumperPrefixCollection addPrefixRoute()
- public void mergeSlashNodes()
- // Inherited methods from DumperCollection
- public array all()
- public void add()
- public void setAll()
- public Iterator getIterator()
- public DumperCollection getRoot()
- protected DumperCollection|null getParent()
- protected void setParent()
- public Boolean hasAttribute()
- public mixed getAttribute()
- public void setAttribute()
- public void setAttributes()
Hierarchy
Members
private
- $prefix — string
Methods
public
- addPrefixRoute() — Adds a route in the tree.
- getPrefix() — Returns the prefix.
- mergeSlashNodes() — Merges nodes whose prefix ends with a slash
- setPrefix() — Sets the prefix.
Inherited from Symfony\Component\Routing\Matcher\Dumper\DumperCollection
protected
- getParent() — Returns the parent collection.
- setParent() — Sets the parent collection.
public
- add() — Adds a route or collection
- all() — Returns the children routes and collections.
- getAttribute() — Returns an attribute by name.
- getIterator() — Returns an iterator over the children.
- getRoot() — Returns the root of the collection.
- hasAttribute() — Returns true if the attribute is defined.
- setAll() — Sets children.
- setAttribute() — Sets an attribute by name.
- setAttributes() — Sets multiple attributes.