src/Budkit/Routing/Controller.php
public function invokeAction($action, $params = [])
    {

        //var_dump($this->request->getAttributes());

        //Will throw an exception if the method does not exists;
        $method = new ReflectionMethod($this, $action);

        if (!$method->isPublic()) {
            throw new Exception('Attempting to call a private method');
        }

        return $method->invokeArgs($this, $params);

    }
public function invokeAction($action, $params = [])
    {

        //var_dump($this->request->getAttributes());

        //Will throw an exception if the method does not exists;
        $method = new ReflectionMethod($this, $action);

        if (!$method->isPublic()) {
            throw new Exception('Attempting to call a private method');
        }

        return $method->invokeArgs($this, $params);

    }
public function invokeAction ( $ action , $ params = [ ] ) { //var_dump($this->request->getAttributes()); //Will throw an exception if the method does not exists; $ method = new ReflectionMethod ( $ this , $ action ) ; if ( ! $ method -> isPublic ( ) ) { throw new Exception ( 'Attempting to call a private method' ) ; } return $ method -> invokeArgs ( $ this , $ params ) ; }
Checks that the method is callable;

@param string $action
@param Route $route

@return void
@author Livingstone Fultang
Checks that the method is callable ;