Skip to content

Set twig service as private #4697

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 3, 2015
Merged

Set twig service as private #4697

merged 1 commit into from
Jan 3, 2015

Conversation

ifdattic
Copy link
Contributor

During the best practices workshop it was suggested that it's best to set services to private if they won't be accessed from your code/container (for performance reasons)

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

During the best practices workshop it was suggested that it's best to set services to private if they won't be accessed from your code/container
@wouterj
Copy link
Member

wouterj commented Dec 28, 2014

👍 but I let best practices co-author @weaverryan merge this

@stof
Copy link
Member

stof commented Dec 31, 2014

👍

@weaverryan
Copy link
Member

Great! Nice addition @ifdattic!

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

Discussion
----------

Set twig service as private

During the best practices workshop it was suggested that it's best to set services to private if they won't be accessed from your code/container (for performance reasons)

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

Commits
-------

7427051 Set twig service as private
@ifdattic ifdattic deleted the patch-2 branch January 4, 2015 08:08
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.

4 participants