MatcherDumper
class MatcherDumper implements MatcherDumperInterface (View source)
Dumps Route information to a database table.
Properties
| protected Connection | $connection | The database connection to which to dump route information. |
|
| protected RouteCollection | $routes | The routes to be dumped. |
|
| protected StateInterface | $state | The state. |
|
| protected string | $tableName | The name of the SQL table to which to dump the routes. |
Methods
Construct the MatcherDumper.
Adds additional routes to be dumped.
Dumps a set of routes to the router table in the database.
Gets the routes to match.
Checks if the tree table exists and create it if not.
Defines the schema for the router table.
Details
__construct(Connection $connection, StateInterface $state, string $table = 'router')
Construct the MatcherDumper.
addRoutes(RouteCollection $routes)
Adds additional routes to be dumped.
dump(array $options = [])
Dumps a set of routes to the router table in the database.
Available options:
- provider: The route grouping that is being dumped. All existing routes with this provider will be deleted on dump.
- base_class: The base class name.
RouteCollection
getRoutes()
Gets the routes to match.
protected bool
ensureTableExists()
Checks if the tree table exists and create it if not.
protected array
schemaDefinition()
| internal |
Defines the schema for the router table.