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

Update override.rst #4831

Merged
merged 2 commits into from Jan 25, 2015
Merged

Update override.rst #4831

merged 2 commits into from Jan 25, 2015

Conversation

ifdattic
Copy link
Contributor

Q A
Doc fix? yes
New docs? no
Applies to 2.3
Fixed tickets

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3
| Fixed tickets |
@stof
Copy link
Member

stof commented Jan 14, 2015

👍

@@ -68,7 +68,7 @@ in the core FrameworkBundle:
$container->setParameter('translator.class', 'Acme\HelloBundle\Translation\Translator');

Secondly, if the class is not available as a parameter, you want to make sure the
class is always overridden when your bundle is used, or you need to modify
class is always overridden when your bundle is used, or if you need to modify
Copy link
Member

Choose a reason for hiding this comment

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

could you please remove ther serial comma here?

@@ -68,7 +68,7 @@ in the core FrameworkBundle:
$container->setParameter('translator.class', 'Acme\HelloBundle\Translation\Translator');

Secondly, if the class is not available as a parameter, you want to make sure the
class is always overridden when your bundle is used, or you need to modify
class is always overridden when your bundle is used or if you need to modify
something beyond just the class name, you should use a compiler pass::
Copy link
Member

Choose a reason for hiding this comment

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

I think we should better reword this sentence completely. It reads really weird. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it wouldn't hurt to reword it, at least it should be split into two sentences to make it easier to read.

Copy link
Member

Choose a reason for hiding this comment

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

Let's merge it this way. I'll create a new PR for 2.5, as this way of overriding services is deprecated anyway.

Copy link
Member

Choose a reason for hiding this comment

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

@wouterj Actually, I think we can remove this from 2.3. This approach was considered "bad", but since there was no code change (e.g. in 2.5) that actually made it deprecated, I think we should show the "right" way in all versions. What do you think?

@weaverryan
Copy link
Member

Consitency! Thanks @ifdattic :)

@weaverryan weaverryan merged commit 44b1584 into symfony:2.3 Jan 25, 2015
weaverryan added a commit that referenced this pull request Jan 25, 2015
This PR was merged into the 2.3 branch.

Discussion
----------

Update override.rst

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3
| Fixed tickets |

Commits
-------

44b1584 Update override.rst
cc5564e Update override.rst
@ifdattic ifdattic deleted the patch-18 branch January 26, 2015 11:05
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

5 participants