mirror of
https://github.com/flarum/framework.git
synced 2025-01-30 22:38:43 +08:00
L8 requires constructor arguments to PhpEngine
This commit is contained in:
parent
9197fa3c7b
commit
1b326c496a
|
@ -86,8 +86,8 @@ class UninstalledSite implements SiteInterface
|
|||
|
||||
$container->singleton('view', function ($container) {
|
||||
$engines = new EngineResolver();
|
||||
$engines->register('php', function () {
|
||||
return new PhpEngine();
|
||||
$engines->register('php', function () use ($container) {
|
||||
return $container->make(PhpEngine::class);
|
||||
});
|
||||
$finder = new FileViewFinder($container->make('files'), []);
|
||||
$dispatcher = $container->make(Dispatcher::class);
|
||||
|
|
Loading…
Reference in New Issue
Block a user