container->singleton(SettingsRepositoryInterface::class, function (Container $container) { return new MemoryCacheSettingsRepository( new DatabaseSettingsRepository( $container->make(ConnectionInterface::class) ) ); }); $this->container->alias(SettingsRepositoryInterface::class, 'flarum.settings'); } }