vendor/josipjelic/msgphp-eav-bundle/Resources/config/doctrine.php line 16

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. use Doctrine\ORM\EntityManagerInterface;
  4. use MsgPhp\EavBundle\DependencyInjection\Configuration;
  5. use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
  6. use function Symfony\Component\DependencyInjection\Loader\Configurator\ref;
  7. return static function (ContainerConfigurator $container): void {
  8.     $services $container->services()
  9.         ->defaults()
  10.             ->autowire()
  11.             ->autoconfigure()
  12.             ->private()
  13.             ->bind(EntityManagerInterface::class, ref('msgphp.doctrine.entity_manager'))
  14.     ;
  15.     foreach (Configuration::getPackageMetadata()->getDoctrineServicePrototypes() as $resource => $namespace) {
  16.         $services->load($namespace$resource);
  17.     }
  18. };