8000 Minor fixes about bundle overridding by javiereguiluz · Pull Request #7490 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Minor fixes about bundle overridding #7490

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 7 commits into from
Apr 15, 2017
Merged

Conversation

javiereguiluz
Copy link
Member

This finishes #6985.

Francisco Corrales Morales added 2 commits February 14, 2017 16:06
The old sentence was confusing. This one works better.
Its better to use e.g. here cause that is just an example. Doesn't always going to be in that path.
Francisco Corrales Morales and others added 4 commits February 14, 2017 16:08
The word 'or' is clear. / not so much.
Titles use caps.
Unnecessary sentence.
This does only apply to Symfony >= 3.0.
@Jean85
Copy link
Contributor
Jean85 commented Feb 16, 2017

LGTM 👍
Status: reviewed


$builder->add('name', new CustomType());
Existing form types can be modified defining "form type extensions".
For more information, see :doc:`/form/create_form_type_extension`.
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

If you refer to resources without using the ``@BundleName`` shortcut, they
can't be overridden in this way.
You need to use the ``@BundleName`` shortcut when refering to resources
so they can be successfully overridden.
Copy link
Member

Choose a reason for hiding this comment

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

There has been confusion in the past about which resources we refer to here. I think we should make more clear that this note does not apply when we talk about templates as the overriding of them works no matter if you use the bundle syntax or the native Twig namespace syntax (I know that the syntax is not exactly the same as what we use to refer to other resources, but that's not so obvious).

rather than::

$builder->add('name', new CustomType());
Existing form types can be modified defining "form type extensions".
Copy link
Member

Choose a reason for hiding this comment

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

I propose: "form type extensions" -> *form type extensions*

@xabbuh
Copy link
Member
xabbuh commented Apr 15, 2017

Thank you Javier.

@xabbuh xabbuh closed this Apr 15, 2017
@xabbuh xabbuh merged commit c9a52ae into symfony:2.7 Apr 15, 2017
xabbuh added a commit that referenced this pull request Apr 15, 2017
…javiereguiluz)

This PR was merged into the 2.7 branch.

Discussion
----------

Minor fixes about bundle overridding

This finishes #6985.

Commits
-------

c9a52ae Added the changes suggested by reviewers
d5cd8d0 Reworded the section about form overridding
600d302 Update installation.rst
62bfc21 Update prepend_extension.rst
2f837d6 Update override.rst
3433e50 Update installation.rst
f684bdd Update inheritance.rst
xabbuh added a commit that referenced this pull request Apr 15, 2017
xabbuh added a commit that referenced this pull request Apr 15, 2017
* 2.7:
  [#7507] fix component name
  [#7490] minor typo fix
  Added a note about redirections to absolute URLs in tests
  Added the changes suggested by reviewers
  Fixed status code test
  Improved a test
  Merged and improved the articles about testing + authentication
  Reworded the section about form overridding
  Update installation.rst
  Update prepend_extension.rst
  Update override.rst
  Update installation.rst
  Update inheritance.rst
  Unify placeholders in documentation and code
xabbuh added a commit that referenced this pull request Apr 15, 2017
* 2.8: (46 commits)
  [#7507] fix component name
  [#7490] minor typo fix
  Added a note about redirections to absolute URLs in tests
  Added the changes suggested by reviewers
  [#7620] use generate() in PHP templates before 2.8
  Fixed the RST syntax
  Improve example context
  [#5621] Enhancing example of using bundle config
  [#7601] minor tweak
  Update expiration.rst
  Update expiration.rst
  Update expiration.rst
  Update expiration.rst
  Minor reword and fixed the line
8000
 length
  Improve specification explanation
  [#7664] minor wording tweak
  Rewords and minor fixes
  Add an explanation about «constraints» validation
  [#7645] enumerate ordered list items implicitly
  Adding a new article about "Creating a Bug Reproducer"
  ...
weaverryan added a commit that referenced this pull request Apr 15, 2017
* 3.2: (71 commits)
  Rewriting the service container docs
  Minor reword
  Adding a tip for validation in forms without class
  [#7217] add versionadded directives
  [#7203] merge note and versionadded directive
  Use the new configurator YAML syntax
  Added a note about the .htaccess files included by Symfony apps
  Made unmapped field example in forms chapter more descriptive
  [#7507] fix namespace
  [#7507] fix component name
  [#7490] minor typo fix
  Added a note about redirections to absolute URLs in tests
  [#7204] link to API doc
  Added docs for JsonResponse::fromJsonString
  Added the changes suggested by reviewers
  [#7620] use generate() in PHP templates before 2.8
  Fixed the RST syntax
  Improve example context
  Minor formatting changes
  [#7519] some minor tweaks
  ...
@javiereguiluz javiereguiluz deleted the pr/6985 branch May 24, 2018 16: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.

6 participants
0