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

Change example of ignoring dependencies for yaml #6905

Closed
wants to merge 1 commit into from

Conversation

mgla178b
Copy link

Change constructor injection to setter injection (the same as in examples for xml and php), so it is clear what method call is ignored

Change constructor injection to setter injection (the same as in examples for xml and php), so it is clear what method call is ignored
@wouterj
Copy link
Member

wouterj commented Aug 23, 2016

Good catch, thanks!

In the next code example, we tell people to "rewrite NewsletterManager to allow for an optional dependency". Can you change that example to use a setter + rewrite the sentence please? Otherwise, we'll do it during the merge.

👍
status: reviewed

@javiereguiluz
Copy link
Member

👍

xabbuh added a commit that referenced this pull request Sep 21, 2016
…ty-178B)

This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #6905).

Discussion
----------

Change example of ignoring dependencies for yaml

Change constructor injection to setter injection (the same as in examples for xml and php), so it is clear what method call is ignored

Commits
-------

282d0fc Change example of ignoring dependencies for yaml
xabbuh added a commit that referenced this pull request Sep 21, 2016
@xabbuh
Copy link
Member

xabbuh commented Sep 21, 2016

Thank you @Integrity-178B for this nice catch. I have merged your changes into the 2.7 branch and added the change @wouterj requested in 430f932.

@xabbuh xabbuh closed this Sep 21, 2016
xabbuh added a commit that referenced this pull request Sep 21, 2016
* 2.7: (24 commits)
  [#6934] add remember me response listener
  Update events.rst
  [#6920] some tweaks after review
  Note about bundle priority for PrependExtensionInterface
  [#6905] rewrite code example to cover the setter
  Change example of ignoring dependencies for yaml
  [FormComponent]Fix wrong mention in side note
  Article about logout.
  Clarify by_reference use
  Use Terminal lexer for console examples
  Update entity_provider.rst
  fixing $formatLevelMap array values
  Fix subject/verb agreement
  Fixed directory name type
  fix link role syntax
  Update voters.rst
  Improved the title of Validation Groups article to make it easier to find it
  Minor reword
  Fix minor typo in security chapter How to Build a Traditional Login Form
  Update composer.rst
  ...
xabbuh added a commit that referenced this pull request Sep 21, 2016
* 2.8: (32 commits)
  [#6989] some minor tweaks
  Added paths options in Framework::translator configuration
  [#6934] add remember me response listener
  Update events.rst
  [#6897] some tweaks after review
  Update voters.rst
  [#6920] some tweaks after review
  Note about bundle priority for PrependExtensionInterface
  [#6926] some tweaks after review
  [#6905] rewrite code example to cover the setter
  Change example of ignoring dependencies for yaml
  [FormComponent]Fix wrong mention in side note
  Article about logout.
  Clarify by_reference use
  Use Terminal lexer for console examples
  Update entity_provider.rst
  fixing $formatLevelMap array values
  Fix subject/verb agreement
  Fixed directory name type
  fix link role syntax
  ...
xabbuh added a commit that referenced this pull request Sep 21, 2016
* 3.1: (50 commits)
  Update heroku.rst
  [#6989] some minor tweaks
  Added paths options in Framework::translator configuration
  [#6934] add remember me response listener
  Update events.rst
  [#6897] some tweaks after review
  Update voters.rst
  [#6920] some tweaks after review
  Note about bundle priority for PrependExtensionInterface
  [#6926] some tweaks after review
  [#6905] rewrite code example to cover the setter
  Change example of ignoring dependencies for yaml
  [FormComponent]Fix wrong mention in side note
  Article about logout.
  Clarify by_reference use
  Use Terminal lexer for console examples
  Update entity_provider.rst
  fixing $formatLevelMap array values
  Use the standard cache and logs dir for the micro kernel example
  Fix subject/verb agreement
  ...
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