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

PWFC extension changes #177

Merged
merged 3 commits into from
Jun 12, 2013
Merged

PWFC extension changes #177

merged 3 commits into from
Jun 12, 2013

Conversation

dantleech
Copy link
Member

@@ -82,6 +82,9 @@ doctrine_phpcr:
- en
- de

cmf_core:
role: CAN_VIEW_NON_PUBLISHED
Copy link
Member Author

Choose a reason for hiding this comment

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

Default role is "AUTHENTICATED_ANONOMOUSLY", so the PWFC status is effectively irrelevant unless we override this.

Also, we should change the name of this option: symfony-cmf/core-bundle#49

Copy link
Member

Choose a reason for hiding this comment

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

don't you need to define that role in security.yml? and to make this complete, we should have an unpublished content and a hint on the home page that after logging in you see more. we should probably finish #169 - i started that but never managed to get back to it to fix the tests.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I guess we should add it to security.yml - in this case I just
wanted that the non-published stuff was hidden. Will be cool to have the
login functionality.

On Wed, Jun 05, 2013 at 08:37:31AM -0700, David Buchmann wrote:

In app/config/config.yml:

@@ -82,6 +82,9 @@ doctrine_phpcr:
- en
- de

+cmf_core:

  • role: CAN_VIEW_NON_PUBLISHED

don't you need to define that role in security.yml? and to make this
complete, we should have an unpublished content and a hint on the home
page that after logging in you see more. we should probably finish [1]#169

  • i started that but never managed to get back to it to fix the tests.


    Reply to this email directly or [2]view it on GitHub.

References

Visible links

  1. enabled login for admin backend
    enabled login for admin backend #169
  2. https://github.com/symfony-cmf/cmf-sandbox/pull/177/files#r4548016

@dbu
Copy link
Member

dbu commented Jun 5, 2013

imho the CoreBundle should only load the publish workflow handling if its enabled. or do we need the service always present because controllers rely on it? could we put a dummy service then or does role anonymous make us never really run the logic? i am worried about overhead when the workflow is not needed at all.

@dantleech
Copy link
Member Author

Yeah.. what if we set the PWFC via. a setter with a kernel.request event
or similar, and implement a PublishWorkflowCheckerAwareInterface?

On Wed, Jun 05, 2013 at 08:35:15AM -0700, David Buchmann wrote:

imho the CoreBundle should only load the publish workflow handling if its
enabled. or do we need the service always present because controllers rely
on it? could we put a dummy service then or does role anonymous make us
never really run the logic? i am worried about overhead when the workflow
is not needed at all.


Reply to this email directly or [1]view it on GitHub.

References

Visible links

  1. PWFC extension changes #177 (comment)

@dbu
Copy link
Member

dbu commented Jun 6, 2013

well if we provide a default service by the core bundle that can be injected, it should be enough. otherwise we could tag them and have a compiler pass that adds the set pwfc method call to the definition.

if pwf is disabled, we should provide/inject a noop-checker. the service should always be able to rely on the pwfc being injected, not assume null means do no check - otherwise setup errors would lead to data leaks.

@lsmith77
Copy link
Member

the required PRs are merged.

@dantleech
Copy link
Member Author

ok, updated security.yml this PR is agnostic to the other discussion above, however composer.json requires blog bundle 1.0.0-alpha2 which will not work with this update, it needs the latest commit.

@lsmith77
Copy link
Member

ok .. we will merge it when we have the next round of tags .. hopefully tomorrow.

lsmith77 added a commit that referenced this pull request Jun 12, 2013
@lsmith77 lsmith77 merged commit 6eeed05 into symfony-cmf:master Jun 12, 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.

3 participants