Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ecaf629

Browse files
committed
Merge pull request symfony#1448 from richardmiller/removing_unneeded_example_code
Removing unneeded example code
2 parents 487fccc + 8c57986 commit ecaf629

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

components/dependency_injection/compilation.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,8 @@ worlds though by using configuration files and then dumping and caching the resu
121121
configuration. The ``PhpDumper`` makes dumping the compiled container easy::
122122

123123
use Symfony\Component\DependencyInjection\ContainerBuilder;
124-
use Symfony\Component\Config\FileLocator;
125-
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
126124
use Symfony\Component\DependencyInjection\Dumper\PhpDumper
127125

128-
$container = new ContainerBuilder();
129-
$loader = new XmlFileLoader($container, new FileLocator(__DIR__));
130-
$loader->load('services.xml');
131-
132126
$file = __DIR__ .'/cache/container.php';
133127

134128
if (file_exists($file)) {

0 commit comments

Comments
 (0)