Generator/Template/Template.php
public function getBundlePrefix(AbstractResourceBundle $bundle = null)
    {
        if (is_null($bundle)) {
            $bundle = $this->bundle;
        }

        $containerExtension = new \ReflectionClass($bundle->getContainerExtension());
        $applicationName = $containerExtension->getProperty('applicationName');
        $applicationName->setAccessible(true);
        $extension = $bundle->getContainerExtension();

        return $applicationName->getValue(new $extension());
    }
public function getBundlePrefix(AbstractResourceBundle $bundle = null)
    {
        if (is_null($bundle)) {
            $bundle = $this->bundle;
        }

        $containerExtension = new \ReflectionClass($bundle->getContainerExtension());
        $applicationName = $containerExtension->getProperty('applicationName');
        $applicationName->setAccessible(true);
        $extension = $bundle->getContainerExtension();

        return $applicationName->getValue(new $extension());
    }
public function getBundlePrefix ( AbstractResourceBundle $ bundle = null ) { if ( is_null ( $ bundle ) ) { $ bundle = $ this -> bundle ; } $ containerExtension = new \ ReflectionClass ( $ bundle -> getContainerExtension ( ) ) ; $ applicationName = $ containerExtension -> getProperty ( 'applicationName' ) ; $ applicationName -> setAccessible ( true ) ; $ extension = $ bundle -> getContainerExtension ( ) ; return $ applicationName -> getValue ( new $ extension ( ) ) ; }
Return the prefix of the bundle.

@param AbstractResourceBundle $bundle

@return string
Return the prefix of the bundle .