src/Service/ConsulEnvManager.php
public function exposeEnvironmentIntoContainer(ContainerBuilder $container, array $mappings): ContainerBuilder
    {
        foreach ($mappings as $environmentKey => $consulPath) {
            $container->setParameter("env({$environmentKey})", getenv($environmentKey));
        }

        return $container;
    }
public function exposeEnvironmentIntoContainer(ContainerBuilder $container, array $mappings): ContainerBuilder
    {
        foreach ($mappings as $environmentKey => $consulPath) {
            $container->setParameter("env({$environmentKey})", getenv($environmentKey));
        }

        return $container;
    }
public function exposeEnvironmentIntoContainer ( ContainerBuilder $ container , array $ mappings ) : ContainerBuilder { foreach ( $ mappings as $ environmentKey => $ consulPath ) { $ container -> setParameter ( "env({$environmentKey})" , getenv ( $ environmentKey ) ) ; } return $ container ; }
Expose a set of mappings into the container builder.

@param ContainerBuilder $container
@param array            $mappings

@return ContainerBuilder
Expose a set of mappings into the container builder .