Symfony\Component\Routing\Generator\Dumper\PhpGeneratorDumper
PhpGeneratorDumper creates a PHP class able to generate URLs for a given set of routes.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class PhpGeneratorDumper
extends GeneratorDumper
{
- // methods
- public string dump()
- private string generateDeclaredRoutes()
- private string generateGenerateMethod()
- // Inherited methods from GeneratorDumper
- public void __construct()
- public void getRoutes()
Hierarchy
Methods
private
- generateDeclaredRoutes() — Generates PHP code representing an array of defined routes together with the routes properties (e.g. requirements).
- generateGenerateMethod() — Generates PHP code representing the `generate` method that implements the UrlGeneratorInterface.
public
- dump() — Dumps a set of routes to a PHP class.
Inherited from Symfony\Component\Routing\Generator\Dumper\GeneratorDumper
public
- getRoutes() — {@inheritdoc}