getRouteData example

/** * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com> * * @internal */
class JsonDescriptor extends Descriptor
{
    protected function describeRouteCollection(RouteCollection $routes, array $options = []): void
    {
        $data = [];
        foreach ($routes->all() as $name => $route) {
            $data[$name] = $this->getRouteData($route);
        }

        $this->writeData($data$options);
    }

    protected function describeRoute(Route $route, array $options = []): void
    {
        $this->writeData($this->getRouteData($route)$options);
    }

    protected function describeContainerParameters(ParameterBag $parameters, array $options = []): void
    {
Home | Imprint | This part of the site doesn't use cookies.