vendor/kematjaya/import-bundle/src/ImportBundle.php line 13

Open in your IDE?
  1. <?php
  2. namespace Kematjaya\ImportBundle;
  3. use Kematjaya\ImportBundle\DataTransformer\DataTransformerInterface;
  4. use Kematjaya\ImportBundle\CompilerPass\DataTransformerCompilerPass;
  5. use Symfony\Component\HttpKernel\Bundle\Bundle;
  6. use Symfony\Component\DependencyInjection\ContainerBuilder;
  7. /**
  8.  * @author Nur Hidayatullah <kematjaya0@gmail.com>
  9.  */
  10. class ImportBundle extends Bundle
  11. {
  12.     public function build(ContainerBuilder $container
  13.     {
  14.         $container->registerForAutoconfiguration(DataTransformerInterface::class)
  15.                 ->addTag(DataTransformerInterface::TAG_NAME);
  16.         
  17.         $container->addCompilerPass(new DataTransformerCompilerPass());
  18.         
  19.         parent::build($container);
  20.     }
  21. }