app->singleton('maps', function ($app) { return new MapContainer(); }); $this->app->singleton(PKPSchemaService::class, function ($app) { return Services::get('schema'); }); $this->app->singleton(PKPRequest::class, function ($app) { return Application::get()->getRequest(); }); $this->app->bind(Context::class, function ($app) { return Application::get()->getRequest()->getContext(); }); } }