public function register() { $this->app['ApiHandler'] = $this->app->share(function ($app) { return new ApiHandler(); }); }