src/Route/RouteCollection.php
public function actionify($action)
    {
        if (false !== ($pos = strrpos($action, '.'))) {
            $action = substr($action, $pos + 1);
        }

        // if this is a service rather than just a controller name, the suffix
        // Action is not automatically appended to the method name
        if (false === strpos($this->baseControllerName, ':')) {
            $action .= 'Action';
        }

        return lcfirst(str_replace(' ', '', ucwords(strtr($action, '_-', '  '))));
    }
public function actionify($action)
    {
        if (false !== ($pos = strrpos($action, '.'))) {
            $action = substr($action, $pos + 1);
        }

        // if this is a service rather than just a controller name, the suffix
        // Action is not automatically appended to the method name
        if (false === strpos($this->baseControllerName, ':')) {
            $action .= 'Action';
        }

        return lcfirst(str_replace(' ', '', ucwords(strtr($action, '_-', '  '))));
    }
public function actionify ( $ action ) { if ( false !== ( $ pos = strrpos ( $ action , '.' ) ) ) { $ action = substr ( $ action , $ pos + 1 ) ; } // if this is a service rather than just a controller name, the suffix // Action is not automatically appended to the method name if ( false === strpos ( $ this -> baseControllerName , ':' ) ) { $ action .= 'Action' ; } return lcfirst ( str_replace ( ' ' , '' , ucwords ( strtr ( $ action , '_-' , '  ' ) ) ) ) ; }
Convert a word in to the format for a symfony action action_name => actionName.

@param string $action Word to actionify

@return string Actionified word
Convert a word in to the format for a symfony action action_name = > actionName .