src/Vectorface/SnappyRouter/Handler/ControllerHandler.php
private function configureViewEncoder($options, $controller, $action)
    {
        // configure the view encoder if they specify a view option
        if (isset($options[self::KEY_VIEWS])) {
            $this->encoder = new TwigViewEncoder(
                $options[self::KEY_VIEWS],
                sprintf('%s/%s.twig', $controller, $action)
            );
        } else {
            $this->encoder = new NullEncoder();
        }
    }
private function configureViewEncoder($options, $controller, $action)
    {
        // configure the view encoder if they specify a view option
        if (isset($options[self::KEY_VIEWS])) {
            $this->encoder = new TwigViewEncoder(
                $options[self::KEY_VIEWS],
                sprintf('%s/%s.twig', $controller, $action)
            );
        } else {
            $this->encoder = new NullEncoder();
        }
    }
private function configureViewEncoder ( $ options , $ controller , $ action ) { // configure the view encoder if they specify a view option if ( isset ( $ options [ self :: KEY_VIEWS ] ) ) { $ this -> encoder = new TwigViewEncoder ( $ options [ self :: KEY_VIEWS ] , sprintf ( '%s/%s.twig' , $ controller , $ action ) ) ; } else { $ this -> encoder = new NullEncoder ( ) ; } }
Configures the view encoder based on the current options.
@param array $options The current options.
@param string $controller The controller to use for the default view.
@param string $action The action to use for the default view.
Configures the view encoder based on the current options .