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

Skip to content

[2.1][Security] Fixed typo + some enhancement #2349

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 4 commits into from
Mar 30, 2013

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented Mar 23, 2013

No description provided.

@lyrixx
Copy link
Member Author

lyrixx commented Mar 23, 2013

The 3rd commit ([Security] Fix typo in chain provider entity) is the most important.

entity:
name: entity
class: SecurityBundle:User
property: username
Copy link
Member

Choose a reason for hiding this comment

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

This is wrong. In the previous example, the first level of entity key is the name of the provider while the second level is the config for the EntityUserProvider.
The config you added here would throw an exception.

Copy link
Member Author

Choose a reason for hiding this comment

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

I did not test, sorry. But I Copy/paste the same config as bellow. I should fix the in memory user provider ? (IIRC)

@lyrixx
Copy link
Member Author

lyrixx commented Mar 25, 2013

About the key name :
I did not test, sorry. But I Copy/paste the same config as bellow. I should fix the in memory user provider ? (IIRC)

property: username
class: SecurityBundle:User
property: username
# same as
Copy link
Member

Choose a reason for hiding this comment

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

This section MUST be removed. Telling that the previous code is the same than this invalid config is totally wrong. Please don't introduce wrong documentation when your PR says "fixed typos"

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed. What about memory user provider ?

weaverryan added a commit that referenced this pull request Mar 30, 2013
[2.1][Security] Fixed typo + some enhancement
@weaverryan weaverryan merged commit bc9febe into symfony:2.1 Mar 30, 2013
@weaverryan
Copy link
Member

Hey Grégoire!

This is awesome - much more descriptive and accurate. This is actually generated originally from config:dump-reference where it looks like the example for the in-memory providers is just totally wrong:

https://github.com/symfony/symfony/blob/2.1/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php#L303

We should fix that as well.

Thanks!

@lyrixx
Copy link
Member Author

lyrixx commented Mar 30, 2013

Ok. I will submit a PR.

@lyrixx lyrixx deleted the patch-ref-sercu branch March 30, 2013 21:57
@lyrixx
Copy link
Member Author

lyrixx commented Mar 30, 2013

Done in symfony/symfony#7528

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.

3 participants