- Added Kash interfaces
This commit is contained in:
1 parent
aba9a65a3c
commit
5bebe231c7
12 files changed
+77
-34
No files matched your search
+10
-1
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Lean;
|
||||
|
||||
use Notes\Annotation;
|
||||
use Taxus\Taxus;
|
||||
|
||||
use League\Route\RouteGroup,
|
||||
@@ -27,6 +28,8 @@ use function DI\autowire, DI\create;
|
||||
|
||||
class Routing {
|
||||
|
||||
public Annotation $selectedRoute;
|
||||
|
||||
protected Session $session;
|
||||
|
||||
protected Cookie $cookie;
|
||||
@@ -106,7 +109,13 @@ class Routing {
|
||||
$container->get(Picea::class)->globalVariables['route'] = $annotation;
|
||||
}
|
||||
|
||||
return $object->$method($request->withAttribute('lean.route', $annotation), $arguments);
|
||||
$request = $request->withAttribute('lean.route', $annotation);
|
||||
|
||||
$this->session->set("lean.route", $annotation);
|
||||
|
||||
$container->set(ServerRequestInterface::class, $request);
|
||||
|
||||
return $object->$method($request, $arguments);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user