<?php
namespace Cdp\Transverse\PiecesJointes;
use App\Framework\Bundle\CdpBundle;
use Cdp\Transverse\PiecesJointes\DependencyInjection\TransversePiecesJointesExtension;
use Symfony\Component\DependencyInjection\Container;
class TransversePiecesJointesBundle extends CdpBundle
{
public function getContainerExtension()
{
if (null === $this->extension) {
$basename = preg_replace('/Bundle$/', '', $this->getName());
$expectedAlias = Container::underscore($basename);
$this->extension = new TransversePiecesJointesExtension(
$this->getPath(),
$this->getNamespace(),
$expectedAlias
);
}
return $this->extension;
}
}