vendor/kevinpapst/tabler-bundle/src/TablerBundle.php line 16

  1. <?php
  2. /*
  3.  * This file is part of the Tabler bundle, created by Kevin Papst (www.kevinpapst.de).
  4.  *
  5.  * For the full copyright and license information, please view the LICENSE
  6.  * file that was distributed with this source code.
  7.  */
  8. namespace KevinPapst\TablerBundle;
  9. use KevinPapst\TablerBundle\DependencyInjection\Compiler\TwigPass;
  10. use Symfony\Component\DependencyInjection\ContainerBuilder;
  11. use Symfony\Component\HttpKernel\Bundle\Bundle;
  12. class TablerBundle extends Bundle
  13. {
  14.     public function getPath(): string
  15.     {
  16.         return \dirname(__DIR__);
  17.     }
  18.     public function build(ContainerBuilder $container)
  19.     {
  20.         parent::build($container);
  21.         $container->addCompilerPass(new TwigPass());
  22.     }
  23. }