Bristol SU Support Package
Public Member Functions | List of all members
BristolSU\Support\Permissions\PermissionServiceProvider Class Reference
Inheritance diagram for BristolSU\Support\Permissions\PermissionServiceProvider:
Inheritance graph
[legend]
Collaboration diagram for BristolSU\Support\Permissions\PermissionServiceProvider:
Collaboration graph
[legend]

Public Member Functions

 register ()
 
 boot ()
 

Detailed Description

Permission Service Provider

Definition at line 29 of file PermissionServiceProvider.php.

Member Function Documentation

◆ boot()

BristolSU\Support\Permissions\PermissionServiceProvider::boot ( )

Boot

  • Register provided permission testers.
  • Set the Laravel gate callback to use the Permission Tester. This allows us to still use laravel functions to check permissions.
  • Route model binding for a module instance permission
  • route model binding for a permission
  • Route model binding for a site (global) permission specifically
Exceptions
BindingResolutionException

Definition at line 58 of file PermissionServiceProvider.php.

◆ register()

BristolSU\Support\Permissions\PermissionServiceProvider::register ( )

Register

  • Bind the permission model and the permission repository
  • Set the permission store as a singleton
  • Set the permission tester as a singleton

Definition at line 39 of file PermissionServiceProvider.php.


The documentation for this class was generated from the following file: