- WIP on picea-asset AND fixing ApplicationStrategy allowing PHP-DI caching
This commit is contained in:
1 parent
3f92287829
commit
4dcc7f407e
4 files changed
+70
-33
No files matched your search
@@ -4,10 +4,19 @@ use function DI\autowire, DI\create, DI\get;
|
||||
|
||||
use Laminas\Diactoros\Response\HtmlResponse;
|
||||
|
||||
use Picea\{ Picea, Caching\Cache, Caching\Opcache, Compiler, Compiler\Context, Compiler\BaseContext, FileFetcher, Language\DefaultRegistrations, Method\Request };
|
||||
use Picea\{Asset\Action\InstallActionInterface,
|
||||
Picea,
|
||||
Caching\Cache,
|
||||
Caching\Opcache,
|
||||
Compiler,
|
||||
Compiler\Context,
|
||||
Compiler\BaseContext,
|
||||
FileFetcher,
|
||||
Language\DefaultRegistrations,
|
||||
Method\Request};
|
||||
use Picea\Extension\{ LanguageHandler, LanguageExtension, TitleExtension, NumberExtension, UrlExtension };
|
||||
use Picea\Ui\{ Method, Ui };
|
||||
use Picea\Asset\Asset;
|
||||
use Picea\Asset\{ Asset, Action };
|
||||
|
||||
return [
|
||||
Picea::class => function($c) {
|
||||
@@ -79,4 +88,8 @@ return [
|
||||
FileFetcher::class => function($c) {
|
||||
return new FileFetcher($c->get(Lean\Lean::class)->getViewPaths());
|
||||
},
|
||||
|
||||
Action\Install::class => autowire(Action\Install::class),
|
||||
Action\Symlink::class => autowire(Action\Symlink::class),
|
||||
Action\InstallActionInterface::class => create(Action\Symlink::class),
|
||||
];
|
||||
Reference in new issue
Block a user