src/CoreBundle/EventListener/DcGeneral/EnvironmentPopulator/DataProviderPopulator.php
public function populate(EnvironmentInterface $environment)
    {
        foreach ([
            $environment->getDataDefinition(),
            $environment->getParentDataDefinition(),
            $environment->getRootDataDefinition()
        ] as $definition) {
            if (!$definition instanceof ContainerInterface) {
                continue;
            }
            $this->injectServiceContainerIntoDataDrivers($definition->getDataProviderDefinition(), $environment);
        }
    }
public function populate(EnvironmentInterface $environment)
    {
        foreach ([
            $environment->getDataDefinition(),
            $environment->getParentDataDefinition(),
            $environment->getRootDataDefinition()
        ] as $definition) {
            if (!$definition instanceof ContainerInterface) {
                continue;
            }
            $this->injectServiceContainerIntoDataDrivers($definition->getDataProviderDefinition(), $environment);
        }
    }
Populate the environment.

@param EnvironmentInterface $environment The environment.

@return void