- Various fixes bugs and missing code in project's skeleton

This commit is contained in:
mcndave authored and Dave Mc Nicoll committed 2026-02-25 19:39:12 +00:00
1 parent 1c2ce07179
commit 4b76a387fe
9 files changed
+124 -10

No files matched your search

+3 -2
View File
@@ -8,6 +8,7 @@ use Notes\Attribute\Ignore;
use Notes\Route\Attribute\Object\Route;
use Notes\Security\Attribute\Security;
use Picea, Picea\Ui\Method\FormContext;
use Picea\Ui\Method\FormContextInterface;
use TheBugs\Email\MailerInterface;
use Storage\{ Cookie, Session };
use League\CommonMark\CommonMarkConverter;
@@ -212,7 +213,7 @@ trait ControllerTrait {
}
#[Ignore]
public function pushContext(FormContext $context) : FormContext
public function pushContext(FormContextInterface $context) : FormContextInterface
{
$this->contextList[$context->formName ?? uniqid("context_")] = $context;
@@ -220,7 +221,7 @@ trait ControllerTrait {
}
#[Ignore]
public function context(? string $name = null) : ? FormContext
public function context(? string $name = null) : ? FormContextInterface
{
return $name ? $this->contextList[$name] : array_values($this->contextList)[0] ?? null;
}