- WIP on skeleton

This commit is contained in:
mcndave committed 2026-01-05 12:38:35 +00:00
1 parent fdca37a79d
commit 78d2d9d291
7 files changed
+77 -27

No files matched your search

+2 -2
View File
@@ -102,7 +102,7 @@ class Composer
throw new \UnexpectedValueException("Composer file 'composer.json' could not be found within your project's root folder.");
}
return $content ??= file_exists($path) ? json_decode(file_get_contents($path), true) : false;
return $content ??= file_exists($path) ? json_decode(file_get_contents($path), true, 512, \JSON_THROW_ON_ERROR) : false;
}
protected static function getNamespaceFromAutoload(Event $event) : ? string
@@ -125,7 +125,7 @@ class Composer
$event->getIO()->writeError("Your composer file do not seem to contains a valid psr-4 project pointing to the src folder.");
return null;
return false;
}
protected static function createPath(... $path) : string
-3
View File
@@ -21,9 +21,6 @@ use function file_get_contents;
#[Route(method: [ "GET", "POST" ])]
trait ControllerTrait {
##[Inject]
# public \Notes\Breadcrumb\Breadcrumb $breadcrumb;
#[Inject]
public Session $session;