protected function registerAccessManager()
    {
        // Bind AccessManager.
        $this->app->singleton(AccessManager::SERVICE_ID, function (Application $app) {
            /** @var Repository $configRepo */
            $configRepo = $app->make('config');

            return new AccessManager(
                $configRepo->get('personality-insights.default_credentials'),
                $configRepo->get('personality-insights.api_version')
            );
        });
    }
protected function registerAccessManager()
    {
        // Bind AccessManager.
        $this->app->singleton(AccessManager::SERVICE_ID, function (Application $app) {
            /** @var Repository $configRepo */
            $configRepo = $app->make('config');

            return new AccessManager(
                $configRepo->get('personality-insights.default_credentials'),
                $configRepo->get('personality-insights.api_version')
            );
        });
    }
protected function registerAccessManager ( ) { // Bind AccessManager. $ this -> app -> singleton ( AccessManager :: SERVICE_ID , function ( Application $ app ) { /** @var Repository $configRepo */ $ configRepo = $ app -> make ( 'config' ) ; return new AccessManager ( $ configRepo -> get ( 'personality-insights.default_credentials' ) , $ configRepo -> get ( 'personality-insights.api_version' ) ) ; } ) ; }
Registers the Access Manager in
the Container.

@return void
Registers the Access Manager in the Container .