Skip to content

[#9135] some minor tweaks #9160

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 1 commit into from
Jan 29, 2018
Merged

[#9135] some minor tweaks #9160

merged 1 commit into from
Jan 29, 2018

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Jan 29, 2018

No description provided.

@xabbuh xabbuh added this to the 4.1 milestone Jan 29, 2018
@xabbuh xabbuh requested a review from javiereguiluz January 29, 2018 09:16
@@ -1071,12 +1071,13 @@ the service is auto-registered and auto-tagged. But, you can also register it ma
$container
->register(AppExtension::class)
->addTag('twig.extension')

;
$container
Copy link
Member Author

Choose a reason for hiding this comment

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

addTag() returns the Definition instance itself, but we need the ContainerBuilder to call register()

->register(AnotherExtension::class)
->addTag('twig.extension', array('priority' => -100))
;

.. versionadded::
.. versionadded:: 4.1
Copy link
Member Author

Choose a reason for hiding this comment

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

the version number is needed for the versionadded block to be rendered correctly

@javiereguiluz
Copy link
Member

I'm sorry for these mistakes! Thanks Christian for fixing it and explaining them.

@javiereguiluz javiereguiluz merged commit 825d5f2 into symfony:master Jan 29, 2018
javiereguiluz added a commit that referenced this pull request Jan 29, 2018
This PR was merged into the master branch.

Discussion
----------

[#9135] some minor tweaks

Commits
-------

825d5f2 [#9135] some minor tweaks
@xabbuh xabbuh deleted the pr-9135 branch January 29, 2018 09:41
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.

3 participants