Allow View to be used via DI
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
db3a3bee37
commit
e606c0eef4
|
@ -290,6 +290,9 @@ class Server extends ServerContainer implements IServerContainer {
|
|||
|
||||
$this->registerAlias(IActionFactory::class, ActionFactory::class);
|
||||
|
||||
$this->registerService(View::class, function (Server $c) {
|
||||
return new View();
|
||||
}, false);
|
||||
|
||||
$this->registerService(IPreview::class, function (ContainerInterface $c) {
|
||||
return new PreviewManager(
|
||||
|
|
Loading…
Reference in New Issue