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 BeforeScopeInterface

This interface should be implemented if a policy class needs to perform a pre-authorization check before the scope is applied to the resource.

Namespace: Authorization\Policy

Method Summary

  • beforeScope() public

    Defines a pre-scope check.

Method Detail

beforeScope() ΒΆ public

beforeScope(Authorization\IdentityInterface|null $identity, mixed $resource, string $action): mixed

Defines a pre-scope check.

If a non-null value is returned, the scope application will be skipped and the un-scoped resource will be returned. In case of null, the scope will be applied.

Parameters
Authorization\IdentityInterface|null $identity

Identity object.

mixed $resource

The resource being operated on.

string $action

The action/operation being performed.

Returns
mixed
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