Merge branch 'master' of https://git.mcnd.ca/mcndave/picea-asset
This commit is contained in:
commit
58bc2211ad
3 files changed
+46
-2
No files matched your search
@@ -2,13 +2,16 @@
|
||||
|
||||
use Picea\{ Asset, Asset\Action, Language\LanguageRegistration, Ui\Ui };
|
||||
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
use function DI\{get, autowire, create};
|
||||
|
||||
return [
|
||||
Asset\Asset::class => autowire(Asset\Asset::class),
|
||||
|
||||
Asset\Config::class => create(Asset\Config::class)->constructor(
|
||||
destination: getenv("PUBLIC_PATH") . DIRECTORY_SEPARATOR . "static"
|
||||
Asset\Config::class => fn(ContainerInterface $c) => new Asset\Config(
|
||||
destination: $c->get('config')['picea']['asset']['symlink']['destination'],
|
||||
path: $c->get('config')['picea']['asset']['path'],
|
||||
),
|
||||
|
||||
Asset\FileFetcher::class => function($c) {
|
||||
@@ -22,4 +25,6 @@ return [
|
||||
Action\InstallActionInterface::class => autowire(Action\Symlink::class),
|
||||
|
||||
LanguageRegistration::class => create(\Lean\PiceaDefaultRegistration::class)->constructor(get('picea.extensions'), [], [], get(Ui::class), get(Asset\Asset::class)),
|
||||
|
||||
\Picea\Extension\UrlExtension::class => create(Asset\Extension\UrlExtension::class)->constructor(get(Asset\Config::class), getenv("URL_BASE"), get('git.commit'), explode(',', getenv('APP_URL')), (bool) getenv('FORCE_SSL')),
|
||||
];
|
||||
Reference in new issue
Block a user