Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[WCM] [The Book, Translations] added doc for translation domain cascading #2825

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

Closed
wants to merge 4 commits into from

Conversation

lerouquin
Copy link

Q A
Doc fix? no
New docs? yes (symfony/symfony#8489)
Applies to all (or 2.3+)

Documentation for an unmerged PR which adds the possibility to use an array of translation domains instead of a single one, thus providing a fallback mechanism.

Some information about translation domain cascading.
@wouterj
Copy link
Member

wouterj commented Jul 14, 2013

The translation docs got a big rewrite in #2545 This needs a rebase when that is merged

@wouterj
Copy link
Member

wouterj commented Jul 14, 2013

And could you please add a versionadded:: 2.4 directive before the new text?

@@ -493,6 +493,15 @@ you must specify the domain as the third argument of ``trans()``::
Symfony2 will now look for the message in the ``admin`` domain of the user's
locale.

In some cases, you may need a fallback mechanism: you can also provide an
array of domains instead of a simple string:
Copy link
Member

Choose a reason for hiding this comment

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

:: instead of :

fabpot added a commit to symfony/symfony that referenced this pull request Jul 20, 2013
This PR was merged into the 2.2 branch.

Discussion
----------

[Security] fixed issue where x509 authentication clears unrelated tokens

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #8226
| License       | MIT
| Doc PR        | symfony/symfony-docs#2825
| Notes          | Replaces PR #8283

TODO:
- [x] Feedback on change to make sure security is not affected
- [x] Fix other authentication listeners (they suffer the same problem)
- [x] Write unit tests for bug and maybe a few listener classes as well

This pull request is the summary of the problem mentioned in the ticket above.
It only fixes the "disappearing token" problem for one authentication provider, not all. If acceptable, the change needs to be applied to all authentication listeners since they always clear all tokens from the security context.

Commits
-------

2317443 [Security] fixed issue where authentication listeners clear unrelated tokens
@xabbuh
Copy link
Member

xabbuh commented Jul 22, 2013

Now, the versionadded directive after the text should be removed.

@weaverryan
Copy link
Member

It looks like there was some confusion with numbering (this got linked to Symfony's 8528 issue, even though it is unrelated), but the original code PR symfony/symfony#8489 was closed without being merged.

Thanks!

@weaverryan weaverryan closed this Oct 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants