getContainerExtension() public method

Returns the bundle's container extension.
public getContainerExtension ( ) : Symfony\Component\DependencyInjection\Extension\ExtensionInterface | null
return Symfony\Component\DependencyInjection\Extension\ExtensionInterface | null The container extension
Esempio n. 1
0
 public static function addBundle(Bundle $bundle)
 {
     $extension = $bundle->getContainerExtension();
     if ($extension) {
         self::$extensions[] = $extension;
     }
     self::$bundlePaths[] = $bundle->getPath();
 }
Esempio n. 2
0
 public function getContainerExtension()
 {
     $ex = parent::getContainerExtension();
     if ($ex != null) {
         $ex = new DependencyInjection\SandboxContainerExtension($ex, $this->serviceIds);
     }
     return $ex;
 }
 public function getContainerExtension()
 {
     return parent::getContainerExtension();
 }
 /**
  * @return \Symfony\Component\DependencyInjection\Extension\ExtensionInterface
  */
 public function getContainerExtension()
 {
     $this->extension = new Extension($this->alias);
     return parent::getContainerExtension();
 }