Пример #1
0
 /**
  * Register Server.
  *
  * @param Bootstrapper $sdk
  *
  * @return mixed|void
  */
 public function register(Bootstrapper $sdk)
 {
     $sdk->bind('cache', function ($sdk) {
         return new Manager($sdk);
     });
     // default adapter
     $sdk->bind('cache.adapter', function ($sdk) {
         return new FileAdapter();
     });
 }
Пример #2
0
 /**
  * Register Server.
  *
  * @param Bootstrapper $sdk
  *
  * @return mixed|void
  */
 public function register(Bootstrapper $sdk)
 {
     $sdk->bind('server', function ($sdk) {
         return new Guard($sdk['input'], $sdk['cryptor']);
     });
 }