There was an error while loading. Please reload this page.
2 parents 487fccc + 8c57986 commit ecaf629Copy full SHA for ecaf629
components/dependency_injection/compilation.rst
@@ -121,14 +121,8 @@ worlds though by using configuration files and then dumping and caching the resu
121
configuration. The ``PhpDumper`` makes dumping the compiled container easy::
122
123
use Symfony\Component\DependencyInjection\ContainerBuilder;
124
- use Symfony\Component\Config\FileLocator;
125
- use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
126
use Symfony\Component\DependencyInjection\Dumper\PhpDumper
127
128
- $container = new ContainerBuilder();
129
- $loader = new XmlFileLoader($container, new FileLocator(__DIR__));
130
- $loader->load('services.xml');
131
-
132
$file = __DIR__ .'/cache/container.php';
133
134
if (file_exists($file)) {
0 commit comments