src/Model/Configuration.php
private function getDefaultAction(Request $request)
    {
        if (!preg_match('/(\w+)Action$/', $request->attributes->get('_controller'), $match)) {
            throw new \RuntimeException('Unable to determine controller name');
        }

        return strtolower(preg_replace('/(?<!^)[A-Z]/', '_$0', $match[1]));
    }
private function getDefaultAction(Request $request)
    {
        if (!preg_match('/(\w+)Action$/', $request->attributes->get('_controller'), $match)) {
            throw new \RuntimeException('Unable to determine controller name');
        }

        return strtolower(preg_replace('/(?<!^)[A-Z]/', '_$0', $match[1]));
    }
private function getDefaultAction ( Request $ request ) { if ( ! preg_match ( '/(\w+)Action$/' , $ request -> attributes -> get ( '_controller' ) , $ match ) ) { throw new \ RuntimeException ( 'Unable to determine controller name' ) ; } return strtolower ( preg_replace ( '/(?<!^)[A-Z]/' , '_$0' , $ match [ 1 ] ) ) ; }
Get the default controller action

@param Request $request
@return string
Get the default controller action