- Added Kash interfaces
This commit is contained in:
1 parent
aba9a65a3c
commit
5bebe231c7
12 files changed
+77
-34
No files matched your search
@@ -11,7 +11,8 @@ use Psr\Http\Message\ResponseFactoryInterface,
|
||||
Psr\Http\Message\ResponseInterface,
|
||||
Psr\Http\Message\ServerRequestInterface,
|
||||
Psr\Http\Server\MiddlewareInterface,
|
||||
Psr\Http\Server\RequestHandlerInterface;
|
||||
Psr\Http\Server\RequestHandlerInterface,
|
||||
Psr\SimpleCache\CacheInterface;
|
||||
|
||||
use TheBugs\JavascriptMiddleware;
|
||||
|
||||
@@ -21,6 +22,8 @@ use Tuupola\Middleware\HttpBasicAuthentication;
|
||||
|
||||
use Notes\Route\RouteFetcher;
|
||||
|
||||
use Notes\Breadcrumb\Breadcrumb;
|
||||
|
||||
use Ulmus\User\Lib\Authenticate;
|
||||
|
||||
use Storage\SessionMiddleware;
|
||||
@@ -29,7 +32,7 @@ return [
|
||||
Lean\Routing::class => autowire(Lean\Routing::class),
|
||||
|
||||
RouteFetcher::class => function($c) {
|
||||
$fetcher = new RouteFetcher();
|
||||
$fetcher = new RouteFetcher(null, [], null, $c->get('routes.caching'), getenv('DEBUG'));
|
||||
|
||||
$fetcher->setFolderList(array_map(function($item) {
|
||||
return $item;
|
||||
@@ -38,6 +41,16 @@ return [
|
||||
return $fetcher;
|
||||
},
|
||||
|
||||
Breadcrumb::class => function($c) {
|
||||
$breadcrumb = new Breadcrumb(null, [], null, $c->get('breadcrumbs.caching'), getenv('DEBUG'));
|
||||
|
||||
$breadcrumb->setFolderList(array_map(function($item) {
|
||||
return $item;
|
||||
}, $c->get(Lean\Lean::class)->getRoutable()));
|
||||
|
||||
return $breadcrumb;
|
||||
},
|
||||
|
||||
ApplicationStrategy::class => function($c) {
|
||||
return new class($c->get(Picea\Picea::class)) extends ApplicationStrategy {
|
||||
|
||||
|
||||
Reference in new issue
Block a user