private function createCallableFromAction($action) : callable
    {
        // Check if this looks like it could be a class/method string
        if (!is_callable($action) && is_string($action)) {
            return $this->convertClassStringToFactory($action);
        }

        return $action;
    }
private function createCallableFromAction($action) : callable
    {
        // Check if this looks like it could be a class/method string
        if (!is_callable($action) && is_string($action)) {
            return $this->convertClassStringToFactory($action);
        }

        return $action;
    }
private function createCallableFromAction ( $ action ) : callable { // Check if this looks like it could be a class/method string if ( ! is_callable ( $ action ) && is_string ( $ action ) ) { return $ this -> convertClassStringToFactory ( $ action ) ; } return $ action ; }
If the action is a Controller string, a factory callable is returned to allow for lazy loading

@param  mixed $action
@return callable
If the action is a Controller string a factory callable is returned to allow for lazy loading