Skip to content

Moving registering extension above loading config in DI code sample #2160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 20, 2013

Conversation

richardmiller-zz
Copy link
Contributor

Q A
Doc fix? yes
New docs? no
Applies to all

As it was an exception would have been thrown with the example as no extension would have been registered to process the config when is it was loaded.

@@ -213,7 +214,7 @@ benefit of merging multiple files and validation of the configuration::
$processor = new Processor();
$config = $processor->processConfiguration($configuration, $configs);

$container->setParameter('acme_demo.FOO', $config['foo']);
$container->setParameter('acme_demo.FOO', $config['foo'])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, unintended as well, not sure how that happened.

weaverryan added a commit that referenced this pull request Jan 20, 2013
Moving registering extension above loading config in DI code sample
@weaverryan weaverryan merged commit a928fa3 into symfony:2.0 Jan 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants