mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 11:34:36 +08:00
Fix container configuration when not installed
This commit is contained in:
parent
a5e286e662
commit
ecdce44d55
|
@ -72,12 +72,12 @@ class UninstalledSite implements SiteInterface
|
||||||
|
|
||||||
$laravel->register(InstallServiceProvider::class);
|
$laravel->register(InstallServiceProvider::class);
|
||||||
|
|
||||||
$laravel->singleton(
|
$container->singleton(
|
||||||
SettingsRepositoryInterface::class,
|
SettingsRepositoryInterface::class,
|
||||||
UninstalledSettingsRepository::class
|
UninstalledSettingsRepository::class
|
||||||
);
|
);
|
||||||
|
|
||||||
$laravel->singleton('view', function ($app) {
|
$container->singleton('view', function ($app) {
|
||||||
$engines = new EngineResolver();
|
$engines = new EngineResolver();
|
||||||
$engines->register('php', function () {
|
$engines->register('php', function () {
|
||||||
return new PhpEngine();
|
return new PhpEngine();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user