src/Drivers/ArrayDriver.php
public function removeCallerPermission(Caller $caller, Permission $permission)
    {
        // Remove permissions which match the action and resource
        $this->permissions[$this->getCallerKey($caller)] = array_filter(
            $this->getCallerPermissions($caller),
            function (Permission $callerPermission) use ($permission) {
                // Only keep permissions which don't exactly match the one which we're trying to remove.
                return ! $callerPermission->matchesPermission($permission);
            }
        );
    }
public function removeCallerPermission(Caller $caller, Permission $permission)
    {
        // Remove permissions which match the action and resource
        $this->permissions[$this->getCallerKey($caller)] = array_filter(
            $this->getCallerPermissions($caller),
            function (Permission $callerPermission) use ($permission) {
                // Only keep permissions which don't exactly match the one which we're trying to remove.
                return ! $callerPermission->matchesPermission($permission);
            }
        );
    }
public function removeCallerPermission ( Caller $ caller , Permission $ permission ) { // Remove permissions which match the action and resource $ this -> permissions [ $ this -> getCallerKey ( $ caller ) ] = array_filter ( $ this -> getCallerPermissions ( $ caller ) , function ( Permission $ callerPermission ) use ( $ permission ) { // Only keep permissions which don't exactly match the one which we're trying to remove. return ! $ callerPermission -> matchesPermission ( $ permission ) ; } ) ; }
Removes a permission from the driver for a caller

@param \BeatSwitch\Lock\Callers\Caller $caller
@param \BeatSwitch\Lock\Permissions\Permission
@return void
Removes a permission from the driver for a caller