protected function registerManager()
    {
        $this->app->singleton(Manager::class, function () {
            $manager = new Manager($this->driver());

            // If we're using the array driver, we'll try to bootstrap the permissions from the config file.
            if ($manager->getDriver() instanceof ArrayDriver) {
                // Get the permissions callback from the config file.
                $callback = config('lock.permissions');

                // Add the permissions which were set in the config file.
                if ($callback !== null) {
                    call_user_func($callback, $manager);
                }
            }

            return $manager;
        });
    }
protected function registerManager()
    {
        $this->app->singleton(Manager::class, function () {
            $manager = new Manager($this->driver());

            // If we're using the array driver, we'll try to bootstrap the permissions from the config file.
            if ($manager->getDriver() instanceof ArrayDriver) {
                // Get the permissions callback from the config file.
                $callback = config('lock.permissions');

                // Add the permissions which were set in the config file.
                if ($callback !== null) {
                    call_user_func($callback, $manager);
                }
            }

            return $manager;
        });
    }
protected function registerManager ( ) { $ this -> app -> singleton ( Manager :: class , function ( ) { $ manager = new Manager ( $ this -> driver ( ) ) ; // If we're using the array driver, we'll try to bootstrap the permissions from the config file. if ( $ manager -> getDriver ( ) instanceof ArrayDriver ) { // Get the permissions callback from the config file. $ callback = config ( 'lock.permissions' ) ; // Add the permissions which were set in the config file. if ( $ callback !== null ) { call_user_func ( $ callback , $ manager ) ; } } return $ manager ; } ) ; }
This method will register the lock manager instance
This method will register the lock manager instance