8000 [WIP][Security]replaced acl:init command with postGenerateSchema listener by vicb · Pull Request #3560 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[WIP][Security]replaced acl:init command with postGenerateSchema listener #3560

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 2 commits into from
Mar 11, 2012

Conversation

vicb
Copy link
Contributor
@vicb vicb commented Mar 11, 2012

Attempt to fix #2091.

The code is from @schmittjoh (see #1313) but was never merged.

The difference is that the init:acl command has not been dropped in order to overcome the limitations described by @stof. @stof do you think this is ok ?

Left to fix:

  • Using the code from this PR, the generated migration does not drop the tables but still alter them,

@stof you know this part of the code far better than me. I would appreacite your feedback on this PR and any hint on solving the remaining item. Thanks.

fabpot added a commit that referenced this pull request Mar 11, 2012
Commits
-------

6d27aec [SecurityBundle] Improve the init:acl command
e809458 [Security]replaced acl:init command with postGenerateSchema listener

Discussion
----------

[WIP][Security]replaced acl:init command with postGenerateSchema listener

Attempt to fix #2091.

The code is from @schmittjoh (see #1313) but was never merged.

The difference is that the `init:acl` command has not been dropped in order to overcome [the limitations](#1313 (comment)) described by @stof. @stof do you think this is ok ?

Left to fix:

* Using the code from this PR, the generated migration does not drop the tables but still alter them,

@stof you know this part of the code far better than me. I would appreacite your feedback on this PR and any hint on solving the remaining item. Thanks.
@fabpot fabpot merged commit 6d27aec into symfony:master Mar 11, 2012
@@ -89,7 +89,11 @@ private function addAclSection(ArrayNodeDefinition $rootNode)
->children()
->arrayNode('acl')
->children()
->scalarNode('connection')->setInfo('any name configured in doctrine.dbal section')->end()
->scalarNode('connection')
->defaultValue('default')
Copy link
Member

Choose a reason for hiding this comment

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

the default value should be null to mean the default connection IMO. Nothing enforces to have a connection named default (and this is a regression as it was handled properly before)

@vicb
Copy link
Contributor Author
vicb commented Mar 11, 2012

@Tobion & @stof thanks for the feedback.

fabpot added a commit that referenced this pull request Mar 12, 2012
Commits
-------

c68c8b8 [SecurityBundle] Lazily load the post schema listener

Discussion
----------

[SecurityBundle] Lazily load the post schema listener

As suggested by @stof in #3560
wouterj pushed a commit to wouterj/DoctrinePHPCRBundle that referenced this pull request May 3, 2015
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.

ACL + DoctrineMigrationsBundle
5 participants
0