vendor/vich/uploader-bundle/src/VichUploaderBundle.php line 16

Open in your IDE?
  1. <?php
  2. namespace Vich\UploaderBundle;
  3. use Symfony\Component\DependencyInjection\ContainerBuilder;
  4. use Symfony\Component\HttpKernel\Bundle\Bundle;
  5. use Vich\UploaderBundle\DependencyInjection\Compiler\RegisterFlysystemRegistryPass;
  6. use Vich\UploaderBundle\DependencyInjection\Compiler\RegisterMappingDriversPass;
  7. use Vich\UploaderBundle\DependencyInjection\Compiler\RegisterSluggerPass;
  8. /**
  9.  * @author Dustin Dobervich <ddobervich@gmail.com>
  10.  *
  11.  * @internal
  12.  */
  13. final class VichUploaderBundle extends Bundle
  14. {
  15.     public function build(ContainerBuilder $container): void
  16.     {
  17.         parent::build($container);
  18.         $container->addCompilerPass(new RegisterMappingDriversPass());
  19.         $container->addCompilerPass(new RegisterFlysystemRegistryPass());
  20.         $container->addCompilerPass(new RegisterSluggerPass());
  21.     }
  22.     public function getPath(): string
  23.     {
  24.         return \dirname(__DIR__);
  25.     }
  26. }