private function dumpContainer(SymfonyContainerBuilder $builder): void
    {
        $dumper = new PhpDumper($builder);

        $content = $dumper->dump(
            [
                'class'      => $this->getContainerClassName(),
                'base_class' => 'Container',
                'file'       => $this->configCache()->getPath(),
            ]
        );

        if (true === \is_string($content))
        {
            $this->configCache()->write($content, $builder->getResources());
        }
    }
private function dumpContainer(SymfonyContainerBuilder $builder): void
    {
        $dumper = new PhpDumper($builder);

        $content = $dumper->dump(
            [
                'class'      => $this->getContainerClassName(),
                'base_class' => 'Container',
                'file'       => $this->configCache()->getPath(),
            ]
        );

        if (true === \is_string($content))
        {
            $this->configCache()->write($content, $builder->getResources());
        }
    }
private function dumpContainer ( SymfonyContainerBuilder $ builder ) : void { $ dumper = new PhpDumper ( $ builder ) ; $ content = $ dumper -> dump ( [ 'class' => $ this -> getContainerClassName ( ) , 'base_class' => 'Container' , 'file' => $ this -> configCache ( ) -> getPath ( ) , ] ) ; if ( true === \ is_string ( $ content ) ) { $ this -> configCache ( ) -> write ( $ content , $ builder -> getResources ( ) ) ; } }
Save container.

@param SymfonyContainerBuilder $builder

@throws \LogicException Cannot dump an uncompiled container
@throws \RuntimeException When cache file can't be written
@throws \Symfony\Component\DependencyInjection\Exception\EnvParameterException When an env var exists but has     not been dumped

@return void
Save container .