- Work done on the kinda-micro-framework to allow smoother deployment

This commit is contained in:
mcndave committed 2022-11-29 19:53:41 +00:00
1 parent f719246624
commit aba9a65a3c
14 files changed
+357 -12

No files matched your search

+2 -1
View File
@@ -64,6 +64,7 @@ class Routing {
public function registerRoute(ContainerInterface $container, string $urlBase) {
$this->router->group(rtrim($urlBase, "/"), function (RouteGroup $route) use ($container) {
foreach($this->fetcher->compile() as $annotation) {
# Register routes to the UrlExtension from picea (handling url, route and asset extensions)
if ( null !== ( $name = $annotation->name ?? null ) ) {
@@ -97,10 +98,10 @@ class Routing {
}
if ( $forbidden = $this->security->taxus($class, $method, $object->user ?? null) ) {
return $forbidden;
}
# @TODO of course, this as to go ; moving to a simple callback method soon which can then be fed by Picea
if ( $container->has(Picea::class) ) {
$container->get(Picea::class)->globalVariables['route'] = $annotation;
}