From 8c5798661c4bf5bba5abd09fb1a296831e336e61 Mon Sep 17 00:00:00 2001 From: Richard Miller Date: Wed, 13 Jun 2012 11:32:19 +0100 Subject: [PATCH] Removed unneeded lines from DI compilation example --- components/dependency_injection/compilation.rst | 6 ------ 1 file changed, 6 deletions(-) diff --git a/components/dependency_injection/compilation.rst b/components/dependency_injection/compilation.rst index 7eb58de083f..47c876c3d8f 100644 --- a/components/dependency_injection/compilation.rst +++ b/components/dependency_injection/compilation.rst @@ -121,14 +121,8 @@ worlds though by using configuration files and then dumping and caching the resu configuration. The ``PhpDumper`` makes dumping the compiled container easy:: use Symfony\Component\DependencyInjection\ContainerBuilder; - use Symfony\Component\Config\FileLocator; - use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; use Symfony\Component\DependencyInjection\Dumper\PhpDumper - $container = new ContainerBuilder(); - $loader = new XmlFileLoader($container, new FileLocator(__DIR__)); - $loader->load('services.xml'); - $file = __DIR__ .'/cache/container.php'; if (file_exists($file)) {