BeatSwitch\Lock\Integrations\Laravel\LockServiceProvider::bootstrapPermissions PHP Method

bootstrapPermissions() protected method

Here we should execute the permissions callback from the config file so all the roles and aliases get registered and if we're using the array driver, all of our permissions get set beforehand.
protected bootstrapPermissions ( )
    protected function bootstrapPermissions()
    {
        // Get the permissions callback from the config file.
        $callback = $this->app['config']->get('lock.permissions', null);
        // Add the permissions which were set in the config file.
        if (!is_null($callback)) {
            call_user_func($callback, $this->app[Manager::class], $this->app[Lock::class]);
        }
    }