mirror of
https://github.com/flarum/framework.git
synced 2024-11-23 06:01:56 +08:00
L8 requires constructor arguments to PhpEngine
This commit is contained in:
parent
92e590f1ab
commit
9fffb8ec1a
|
@ -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