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

        return strtolower(str_replace('\\', '_', $match[1]));
    }
private function getDefaultName(Request $request)
    {
        if (!preg_match('/Bundle\\\\Controller\\\\([\w\\\\]+)Controller:/', $request->attributes->get('_controller'), $match)) {
            throw new \RuntimeException('Unable to determine controller name');
        }

        return strtolower(str_replace('\\', '_', $match[1]));
    }
private function getDefaultName ( Request $ request ) { if ( ! preg_match ( '/Bundle\\\\Controller\\\\([\w\\\\]+)Controller:/' , $ request -> attributes -> get ( '_controller' ) , $ match ) ) { throw new \ RuntimeException ( 'Unable to determine controller name' ) ; } return strtolower ( str_replace ( '\\' , '_' , $ match [ 1 ] ) ) ; }
Get the default controller name

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