- Fixed assets whenever it's not installed
This commit is contained in:
1 parent
bc6880c166
commit
d8045b5f3c
3 files changed
+16
-19
No files matched your search
@@ -31,12 +31,6 @@ return [
|
||||
|
||||
Ui::class => autowire(Ui::class),
|
||||
|
||||
Asset\Asset::class => autowire(Asset\Asset::class),
|
||||
|
||||
Asset\Config::class => create(Asset\Config::class)->constructor(
|
||||
destination: getenv("PUBLIC_PATH") . DIRECTORY_SEPARATOR . "static"
|
||||
),
|
||||
|
||||
Compiler::class => autowire(Compiler::class),
|
||||
|
||||
Request::class => autowire(Request::class),
|
||||
@@ -49,7 +43,7 @@ return [
|
||||
|
||||
LanguageHandlerInterface::class => autowire(\Lean\LanguageHandler::class),
|
||||
|
||||
LanguageRegistration::class => create(\Lean\PiceaDefaultRegistration::class)->constructor(get('picea.extensions'), [], [], get(Ui::class), get(Asset\Asset::class)),
|
||||
LanguageRegistration::class => create(\Lean\PiceaDefaultRegistration::class)->constructor(get('picea.extensions'), [], [], get(Ui::class), null),
|
||||
|
||||
'picea.extensions' => function(\Psr\Container\ContainerInterface $c) {
|
||||
return array_merge([
|
||||
@@ -76,14 +70,4 @@ return [
|
||||
FileFetcher::class => function($c) {
|
||||
return new FileFetcher($c->get(Lean\Lean::class)->getViewPaths());
|
||||
},
|
||||
|
||||
Asset\FileFetcher::class => function($c) {
|
||||
return new Asset\FileFetcher($c->get(Lean\Lean::class)->getAssetPaths());
|
||||
},
|
||||
|
||||
Action\Install::class => autowire(Action\Install::class)->constructor(get(Action\InstallActionInterface::class), []),
|
||||
|
||||
Action\Symlink::class => autowire(Action\Symlink::class),
|
||||
|
||||
Action\InstallActionInterface::class => autowire(Action\Symlink::class),
|
||||
];
|
||||
Reference in new issue
Block a user