Skip to content
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

service_container : fix php Definition instance #6884

Merged
merged 1 commit into from
Aug 21, 2016
Merged

service_container : fix php Definition instance #6884

merged 1 commit into from
Aug 21, 2016

Conversation

ReDnAxE
Copy link
Contributor

@ReDnAxE ReDnAxE commented Aug 17, 2016

Nothing really important ^^, just according YAML format with PHP format.

I have a question but I don't know where I can ask ^^ :
The doc says that $container->register is a shortcut of definition method ("shortcut for the previous method").

But for me definition method is not the same as directly register service in containerBuidler.
Is there a place where I can post my questions ?

EDIT: I think this is not a justified PR, if so, sorry for the time spent

Nothing really important ^^, just according YAML format with PHP format
@wouterj
Copy link
Member

wouterj commented Aug 17, 2016

Thanks for updating the example! 👍
status: reviewed

But for me definition method is not the same as directly register service in containerBuidler.

Unfortunately for you, the register() method is hardcoded. So it should work the same for you. (in other words, you might do something else wrong).

You can ask for help using one of the support channels.

@weaverryan
Copy link
Member

Really nice catch @ReDnAxE. Thanks !

@weaverryan weaverryan merged commit 20590f5 into symfony:2.7 Aug 21, 2016
weaverryan added a commit that referenced this pull request Aug 21, 2016
This PR was merged into the 2.7 branch.

Discussion
----------

service_container : fix php Definition instance

Nothing really important ^^, just according YAML format with PHP format.

I have a question but I don't know where I can ask ^^ :
The doc says that $container->register is a shortcut of definition method [("shortcut for the previous method")](http://symfony.com/doc/current/service_container/definitions.html#getting-and-setting-service-definitions).

But for me definition method is not the same as directly register service in containerBuidler.
Is there a place where I can post my questions ?

EDIT: I think this is not a justified PR, if so, sorry for the time spent

Commits
-------

20590f5 service_container : fix php Definition instance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants