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

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\RegisterMappingDriversPass;
  6. /**
  7.  * @author Dustin Dobervich <ddobervich@gmail.com>
  8.  */
  9. final class VichUploaderBundle extends Bundle
  10. {
  11.     public function build(ContainerBuilder $container): void
  12.     {
  13.         parent::build($container);
  14.         $container->addCompilerPass(new RegisterMappingDriversPass());
  15.     }
  16.     public function getPath(): string
  17.     {
  18.         return \dirname(__DIR__);
  19.     }
  20. }