/** * 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(); }); }
/** * 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']); }); }