vendor/league/flysystem-bundle/src/FlysystemBundle.php line 22

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the flysystem-bundle project.
  4. *
  5. * (c) Titouan Galopin <galopintitouan@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace League\FlysystemBundle;
  11. use League\FlysystemBundle\DependencyInjection\Compiler\GcloudFactoryPass;
  12. use League\FlysystemBundle\DependencyInjection\Compiler\LazyFactoryPass;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. /**
  16. * @author Titouan Galopin <galopintitouan@gmail.com>
  17. */
  18. final class FlysystemBundle extends Bundle
  19. {
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public function build(ContainerBuilder $container): void
  24. {
  25. parent::build($container);
  26. $container->addCompilerPass(new LazyFactoryPass());
  27. $container->addCompilerPass(new GcloudFactoryPass());
  28. }
  29. }