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());
        }
    }