singleton( SetupState::class, static function () { return new SetupState(); } ); $container->singleton( FormPluginDetector::class, static function () { return new FormPluginDetector(); } ); $container->singleton( SetupService::class, static function ( Container $c ) { return new SetupService( $c->get( SetupState::class ), $c->get( FormSettingsService::class ), $c->get( FormPluginDetector::class ), new SetupMailComposer() ); } ); $container->singleton( SetupRestController::class, static function ( Container $c ) { return new SetupRestController( $c->get( SetupService::class ), $c->get( SetupState::class ) ); } ); } /** * {@inheritdoc} */ public function boot( Container $container ): void { $container->get( SetupRestController::class )->init(); SetupRedirect::register(); FormDefaults::register(); } }