protected function getDefaultControllerAndAction($config = [])
    {
        $controller = $action = null;
        if (isset($this->defaultController)) {
            /** @var ControllerInterface $controller */
            $configDefault = is_array($this->defaultController) ? $this->defaultController : ['class' => $this->defaultController];
            $config = Reaction\Helpers\ArrayHelper::merge($configDefault, $config);
            $controller = Reaction::create($config);
            $action = $controller->defaultAction;
        }
        return [$controller, $action];
    }
protected function getDefaultControllerAndAction($config = [])
    {
        $controller = $action = null;
        if (isset($this->defaultController)) {
            /** @var ControllerInterface $controller */
            $configDefault = is_array($this->defaultController) ? $this->defaultController : ['class' => $this->defaultController];
            $config = Reaction\Helpers\ArrayHelper::merge($configDefault, $config);
            $controller = Reaction::create($config);
            $action = $controller->defaultAction;
        }
        return [$controller, $action];
    }
protected function getDefaultControllerAndAction ( $ config = [ ] ) { $ controller = $ action = null ; if ( isset ( $ this -> defaultController ) ) { /** @var ControllerInterface $controller */ $ configDefault = is_array ( $ this -> defaultController ) ? $ this -> defaultController : [ 'class' => $ this -> defaultController ] ; $ config = Reaction \ Helpers \ ArrayHelper :: merge ( $ configDefault , $ config ) ; $ controller = Reaction :: create ( $ config ) ; $ action = $ controller -> defaultAction ; } return [ $ controller , $ action ] ; }
Get default action
@param array $config
@return array
Get default action