src/Controller/Component/AuthorizationComponent.php
protected function checkAction($action, $configKey)
    {
        $actions = (array)$this->getConfig($configKey);

        return in_array($action, $actions, true);
    }
protected function checkAction($action, $configKey)
    {
        $actions = (array)$this->getConfig($configKey);

        return in_array($action, $actions, true);
    }
protected function checkAction ( $ action , $ configKey ) { $ actions = ( array ) $ this -> getConfig ( $ configKey ) ; return in_array ( $ action , $ actions , true ) ; }
Checks whether an action should be authorized according to the config key provided.

@param string $action Action name.
@param string $configKey Configuration key with actions.
@return bool
Checks whether an action should be authorized according to the config key provided .