vendor/sonata-project/exporter/src/Bridge/Symfony/Bundle/SonataExporterBundle.php line 21

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of the Sonata Project package.
  5.  *
  6.  * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  7.  *
  8.  * For the full copyright and license information, please view the LICENSE
  9.  * file that was distributed with this source code.
  10.  */
  11. namespace Sonata\Exporter\Bridge\Symfony\Bundle;
  12. use Sonata\Exporter\Bridge\Symfony\DependencyInjection\Compiler\ExporterCompilerPass;
  13. use Sonata\Exporter\Bridge\Symfony\DependencyInjection\SonataExporterExtension;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. final class SonataExporterBundle extends Bundle
  17. {
  18.     public function build(ContainerBuilder $container): void
  19.     {
  20.         $container->addCompilerPass(new ExporterCompilerPass());
  21.     }
  22.     protected function getContainerExtensionClass(): string
  23.     {
  24.         return SonataExporterExtension::class;
  25.     }
  26. }