/**
  * Bind the storage implementations to the IoC container
  * @return void
  */
 public function registerStorageBindings()
 {
     $redis = new RedisCapsule($this->app['config']->get('database.oauth2-redis'));
     $redis->setAsGlobal();
     $this->app->bindShared('Fahmiardi\\OAuth2\\Server\\Storage\\Redis\\RedisAccessToken', function () {
         return new RedisAccessToken();
     });
     $this->app->bindShared('Fahmiardi\\OAuth2\\Server\\Storage\\Redis\\RedisClient', function () {
         return new RedisClient();
     });
     $this->app->bindShared('Fahmiardi\\OAuth2\\Server\\Storage\\Redis\\RedisScope', function () {
         return new RedisScope();
     });
     $this->app->bindShared('Fahmiardi\\OAuth2\\Server\\Storage\\Redis\\RedisSession', function () {
         return new RedisSession();
     });
 }