/**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     parent::register();
     $this->app->bindShared('cache', function ($app) {
         return new CacheManager($app);
     });
 }
 /**
  * Register bindings in the container.
  *
  * @return void
  */
 public function register()
 {
     parent::register();
     // replace cache manager
     $this->app->singleton('cache', function ($app) {
         return new CacheManager($app);
     });
 }
 /**
  * Replace \Illuminate\Cache\CacheManager with B3IT\CacheManager
  *
  * @return void
  */
 public function register()
 {
     parent::register();
     $this->app->bindShared('cache', function ($app) {
         return new CacheManager($app);
     });
     $this->app->bindShared('memcached.connector', function () {
         return new MemcachedConnector();
     });
 }
 /**
  * Returns the services provided by the provider.
  */
 public function provides()
 {
     $result = parent::provides();
     return array_merge($result, ['yacache', 'yacache.store', 'command.yacache.clear', 'command.yacache.table']);
 }
Ejemplo n.º 5
0
 public function provides()
 {
     $provides = parent::provides();
     array_push($provides, 'memcache.connector', 'kvdb.connector');
     return $provides;
 }