lean/skeleton/meta/definitions/env/dev.php

21 lines
1022 B
PHP
Raw Normal View History

<?php
use function DI\create, DI\autowire, DI\get;
use Dump\DumpMiddleware;
if ($_GET['sql'] ?? false) {
\Ulmus\Common\PdoObject::$dump = "dump";
}
return [
"dump" => create(DumpMiddleware::class),
"errorHandler" => create(Middlewares\Whoops::class),
2023-01-26 13:28:36 +00:00
'routes.caching' => create(Kash\ArrayCache::class)->constructor(get(Kash\CacheInvalidator::class), "lean.routes", 30),
'breadcrumbs.caching' => create(Kash\ArrayCache::class)->constructor( get(Kash\CacheInvalidator::class), "lean.breadcrumbs", 30),
'ulmus.caching' => create(Kash\ArrayCache::class)->constructor( get(Kash\CacheInvalidator::class), "ulmus.entities", 30),
2023-01-27 15:42:33 +00:00
'cronard.caching' => create(Kash\ArrayCache::class)->constructor( get(Kash\CacheInvalidator::class), "lean.cronards", 30),
2023-07-09 16:37:39 +00:00
'events.caching' => create(Kash\ArrayCache::class)->constructor( get(Kash\CacheInvalidator::class), "lean.events", 30),
'cli.caching' => create(Kash\ArrayCache::class)->constructor( get(Kash\CacheInvalidator::class), "lean.cli", 30),
];