Cdp/Transverse/PiecesJointes/TransversePiecesJointesBundle.php line 9

Open in your IDE?
  1. <?php
  2. namespace Cdp\Transverse\PiecesJointes;
  3. use App\Framework\Bundle\CdpBundle;
  4. use Cdp\Transverse\PiecesJointes\DependencyInjection\TransversePiecesJointesExtension;
  5. use Symfony\Component\DependencyInjection\Container;
  6. class TransversePiecesJointesBundle extends CdpBundle
  7. {
  8.     public function getContainerExtension()
  9.     {
  10.         if (null === $this->extension) {
  11.             $basename preg_replace('/Bundle$/'''$this->getName());
  12.             $expectedAlias Container::underscore($basename);
  13.             $this->extension = new TransversePiecesJointesExtension(
  14.                 $this->getPath(),
  15.                 $this->getNamespace(),
  16.                 $expectedAlias
  17.             );
  18.         }
  19.         return $this->extension;
  20.     }
  21. }