Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\User\DocumentBundle\DependencyInjection;
  4.  
  5. use Symfony\Component\DependencyInjection\ContainerBuilder;
  6. use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
  7.  
  8. class DocumentExtension
  9. {
  10.     public function load(array $configs, ContainerBuilder $container)
  11.     {
  12.         $loader = new YamlFileLoader(
  13.             $container,
  14.             new FileLocator(__DIR__.'/../Resources/config')
  15.         );
  16.         $loader->load('services.yml');
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement