src/BjyAuthorize/Guard/Controller.php
public function getResourceName($controller, $action = null)
    {
        if (isset($action)) {
            return sprintf('controller/%s:%s', $controller, strtolower($action));
        }

        return sprintf('controller/%s', $controller);
    }
public function getResourceName($controller, $action = null)
    {
        if (isset($action)) {
            return sprintf('controller/%s:%s', $controller, strtolower($action));
        }

        return sprintf('controller/%s', $controller);
    }
public function getResourceName ( $ controller , $ action = null ) { if ( isset ( $ action ) ) { return sprintf ( 'controller/%s:%s' , $ controller , strtolower ( $ action ) ) ; } return sprintf ( 'controller/%s' , $ controller ) ; }
Retrieves the resource name for a given controller

@param string $controller
@param string $action

@return string
Retrieves the resource name for a given controller