Permalink
Browse files

Merge pull request #1189 from gunnarlium/fix_typo_in_dependency_injec…

…tion_component

[DependencyInjection] Fixed typos in example code ($container instead of $sc)
  • Loading branch information...
2 parents 520cc2d + 615be70 commit f7892a876a072382385acef0a92daead46637412 @weaverryan weaverryan committed Apr 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 components/dependency_injection.rst
@@ -212,7 +212,7 @@ Loading an xml config file:
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
$sc = new ContainerBuilder();
- $loader = new XmlFileLoader($container, new FileLocator(__DIR__));
+ $loader = new XmlFileLoader($sc, new FileLocator(__DIR__));
$loader->load('services.xml');
Loading a yaml config file:
@@ -224,7 +224,7 @@ Loading a yaml config file:
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
$sc = new ContainerBuilder();
- $loader = new YamlFileLoader($container, new FileLocator(__DIR__));
+ $loader = new YamlFileLoader($sc, new FileLocator(__DIR__));
$loader->load('services.yml');
The ``newsletter_manager`` and ``mailer`` services can be set up using config files:

0 comments on commit f7892a8

Please sign in to comment.