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

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. final class VichUploaderBundle extends Bundle
  12. {
  13.     public function build(ContainerBuilder $container): void
  14.     {
  15.         parent::build($container);
  16.         $container->addCompilerPass(new RegisterMappingDriversPass());
  17.         $container->addCompilerPass(new RegisterFlysystemRegistryPass());
  18.         $container->addCompilerPass(new RegisterSluggerPass());
  19.     }
  20.     public function getPath(): string
  21.     {
  22.         return \dirname(__DIR__);
  23.     }
  24. }