lithium\action\Response::_init PHP Метод

_init() защищенный Метод

Sets the Location header using $config['location'] and $config['request'] passed in through the constructor if provided.
protected _init ( ) : void
Результат void
    protected function _init()
    {
        parent::_init();
        $router = $this->_classes['router'];
        if ($this->_config['location']) {
            $location = $router::match($this->_config['location'], $this->_config['request']);
            $this->headers('Location', $location);
        }
    }