Ouzo\Routing\RouteRule::prepareResourceControllerName PHP Method

prepareResourceControllerName() private method

    private function prepareResourceControllerName()
    {
        $parts = explode('_', $this->controller);
        if (in_array($this->action, array('index', 'create'))) {
            $suffix = array_pop($parts);
        } else {
            $suffix = Inflector::singularize(array_pop($parts));
        }
        $parts[] = $suffix;
        return implode('_', $parts);
    }