code: public function populate(EnvironmentInterface $environment)
      {
          foreach ([
              $environment->getDataDefinition(),
              $environment->getParentDataDefinition(),
              $environment->getRootDataDefinition()
          ] as $definition) {
              if (!$definition instanceof ContainerInterface) {
                  continue;
              }
              $this->injectServiceContainerIntoDataDrivers($definition->getDataProviderDefinition(), $environment);
          }
      }
docs: Populate the environment.
  
  @param EnvironmentInterface $environment The environment.
  
  @return void