private function checkMethodExists($method)
    {
        if (! $this->controllerClass->hasMethod($method)) {
            throw new MissingControllerMethodException(
                sprintf(
                    "Method %s::%s() is not defined in controller.",
                    $this->controllerClass->getShortName(),
                    $method
                )
            );
        }
    }
private function checkMethodExists($method)
    {
        if (! $this->controllerClass->hasMethod($method)) {
            throw new MissingControllerMethodException(
                sprintf(
                    "Method %s::%s() is not defined in controller.",
                    $this->controllerClass->getShortName(),
                    $method
                )
            );
        }
    }
private function checkMethodExists ( $ method ) { if ( ! $ this -> controllerClass -> hasMethod ( $ method ) ) { throw new MissingControllerMethodException ( sprintf ( "Method %s::%s() is not defined in controller." , $ this -> controllerClass -> getShortName ( ) , $ method ) ) ; } }
Check if controller class has the provided method name

@param string $method

@throws MissingControllerMethodException If provided method is not defined within the class
Check if controller class has the provided method name