public function render(Route $route, $name = null)
    {
        if (null !== $name && true === $this->generatorCollection->has($name)) {
            $parameters = $this->generatorCollection->get($name)->generate();
        } else {
            $parameters = [ [] ];
        }

        foreach ($parameters as $parameter) {
            $this->renderWithParameters($route, $name, $parameter);
        }
    }
public function render(Route $route, $name = null)
    {
        if (null !== $name && true === $this->generatorCollection->has($name)) {
            $parameters = $this->generatorCollection->get($name)->generate();
        } else {
            $parameters = [ [] ];
        }

        foreach ($parameters as $parameter) {
            $this->renderWithParameters($route, $name, $parameter);
        }
    }
public function render ( Route $ route , $ name = null ) { if ( null !== $ name && true === $ this -> generatorCollection -> has ( $ name ) ) { $ parameters = $ this -> generatorCollection -> get ( $ name ) -> generate ( ) ; } else { $ parameters = [ [ ] ] ; } foreach ( $ parameters as $ parameter ) { $ this -> renderWithParameters ( $ route , $ name , $ parameter ) ; } }
Renders the page with the given route.

@param Route  $route Route object.
@param string $name  Name of the route; the default value is `null`.

@return void
Renders the page with the given route .