DotKernel authorization controller plugin
Authorization controller plugin
dot-controller-plugin-authorization is archived and will receive no further development!
Run the following command
$ composer require dotkernel/dot-controller-plugin-authorization
This will also install packages
dotkernel/dot-authorization as dependencies.
Next, enable the module by merging the
ConfigProvider to your application's configuration.
In any controller, you can access this plugin by calling
This plugin defines one method, as a proxy to the registered authorization service
$this->authorization()->isGranted($permission, array $roles = , $context = null);