| 1: | <?php |
| 2: | namespace TIC\DormBundle; |
| 3: | |
| 4: | use Symfony\Component\HttpKernel\Bundle\Bundle; |
| 5: | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 6: | |
| 7: | use TIC\DormBundle\DependencyInjection\DoctrineCompilerPass; |
| 8: | |
| 9: | class TICDormBundle extends Bundle |
| 10: | { |
| 11: | |
| 12: | public function getPath(): string |
| 13: | { |
| 14: | return \dirname(__DIR__); |
| 15: | } |
| 16: | |
| 17: | /** |
| 18: | * {@inheritdoc} |
| 19: | */ |
| 20: | public function build(ContainerBuilder $container) |
| 21: | { |
| 22: | $container->addCompilerPass(new DoctrineCompilerPass()); |
| 23: | } |
| 24: | |
| 25: | } |
| 26: |