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

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\LazyFactoryPass;
  12. use League\FlysystemBundle\DependencyInjection\Compiler\PluginPass;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. /**
  16.  * @author Titouan Galopin <galopintitouan@gmail.com>
  17.  *
  18.  * @final
  19.  */
  20. class FlysystemBundle extends Bundle
  21. {
  22.     /**
  23.      * {@inheritdoc}
  24.      */
  25.     public function build(ContainerBuilder $container)
  26.     {
  27.         parent::build($container);
  28.         $container->addCompilerPass(new PluginPass());
  29.         $container->addCompilerPass(new LazyFactoryPass());
  30.     }
  31. }