CakePHP
  • Documentation
    • Book
    • API
    • Videos
    • Reporting Security Issues
    • Privacy Policy
    • Logos & Trademarks
  • Business Solutions
  • Swag
  • Road Trip
  • Team
  • Community
    • Community
    • Get Involved
    • Issues (Github)
    • Bakery
    • Featured Resources
    • Training
    • Meetups
    • My CakePHP
    • CakeFest
    • Newsletter
    • Linkedin
    • YouTube
    • Facebook
    • Twitter
    • Mastodon
    • Help & Support
    • Forum
    • Stack Overflow
    • IRC
    • Slack
    • Paid Support
CakePHP

C Authorization 3.x API

  • Project:
    • Authorization
      • CakePHP
      • Authentication
      • Authorization
      • Chronos
      • Elastic Search
      • Queue
  • Version:
    • 3.x
      • 3.x
      • 2.x

Namespaces

  • Authorization
    • Command
    • Controller
    • Exception
    • Middleware
    • Policy
      • Exception

Interface BeforePolicyInterface

This interface should be implemented if a policy class needs to perform a pre-authorization check before the action access check takes place.

Namespace: Authorization\Policy

Method Summary

  • before() public

    Defines a pre-authorization check.

Method Detail

before() ΒΆ public

before(Authorization\IdentityInterface|null $identity, mixed $resource, string $action): Authorization\Policy\ResultInterface|bool|null

Defines a pre-authorization check.

If a boolean value is returned, the action check will be skipped and pre-authorization check result will be returned. In case of null, the action check will take place.

Parameters
Authorization\IdentityInterface|null $identity

Identity object.

mixed $resource

The resource being operated on.

string $action

The action/operation being performed.

Returns
Authorization\Policy\ResultInterface|bool|null
OpenHub
Pingping
Linode
  • Business Solutions
  • Showcase
  • Documentation
  • Book
  • API
  • Videos
  • Reporting Security Issues
  • Privacy Policy
  • Logos & Trademarks
  • Community
  • Get Involved
  • Issues (Github)
  • Bakery
  • Featured Resources
  • Training
  • Meetups
  • My CakePHP
  • CakeFest
  • Newsletter
  • Linkedin
  • YouTube
  • Facebook
  • Twitter
  • Mastodon
  • Help & Support
  • Forum
  • Stack Overflow
  • IRC
  • Slack
  • Paid Support

Generated using CakePHP API Docs