Skip to content

Adding notes about Extension registration to the DI component #2161

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? yes
Applies to all

use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;

$container = new ContainerBuilder();
$extension = new AcmeDemoExtension;
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be new AcmeDemoExtension();?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Certainly can be and is then consistent with the line above. Out of interest is there something about this in the CS standard regarding this?

Copy link
Member

Choose a reason for hiding this comment

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

I haven't found it yet. We should maybe add this to the symfony CS as it is generally used in the core framework.

Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure it is written in the doc, but it is applied in the code

weaverryan added a commit that referenced this pull request Jan 20, 2013
Adding notes about Extension registration to the DI component
@weaverryan weaverryan merged commit 49c4ecf into symfony:2.0 Jan 20, 2013
@weaverryan
Copy link
Member

Nice work guys :)

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.

4 participants