src/Graviton/GeneratorBundle/Command/GenerateDynamicBundleCommand.php
private function getBundleClassnameFromFolder($folderName)
    {
        if (substr($folderName, -6) == 'Bundle') {
            $folderName = substr($folderName, 0, -6);
        }

        return sprintf(self::BUNDLE_NAME_MASK, $folderName);
    }
private function getBundleClassnameFromFolder($folderName)
    {
        if (substr($folderName, -6) == 'Bundle') {
            $folderName = substr($folderName, 0, -6);
        }

        return sprintf(self::BUNDLE_NAME_MASK, $folderName);
    }
private function getBundleClassnameFromFolder ( $ folderName ) { if ( substr ( $ folderName , - 6 ) == 'Bundle' ) { $ folderName = substr ( $ folderName , 0 , - 6 ) ; } return sprintf ( self :: BUNDLE_NAME_MASK , $ folderName ) ; }
from a name of a folder of a bundle, this function returns the corresponding class name

@param string $folderName folder name

@return string
from a name of a folder of a bundle this function returns the corresponding class name