Skip to content
This repository has been archived by the owner. It is now read-only.

dotkernel/dot-controller-plugin-authorization

2.0
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

dot-controller-plugin-authorization

Authorization controller plugin

OSS Lifecycle GitHub license

NOTE

dot-controller-plugin-authorization is archived and will receive no further development!

Installation

Run the following command

$ composer require dotkernel/dot-controller-plugin-authorization

This will also install packages dotkernel/dot-controller and dotkernel/dot-authorization as dependencies. Next, enable the module by merging the ConfigProvider to your application's configuration.

Usage

In any controller, you can access this plugin by calling

$this->authorization()->...

This plugin defines one method, as a proxy to the registered authorization service

$this->authorization()->isGranted($permission, array $roles = [], $context = null);

About

DotKernel authorization controller plugin component

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages