- Added a new MoneyExtension to Picea's default extension loading.
- Some new way to identify as a DEV on the app using headers
This commit is contained in:
1 parent
f23606de64
commit
f719246624
3 files changed
+13
-6
No files matched your search
@@ -160,8 +160,8 @@ trait ControllerTrait {
|
||||
return $context;
|
||||
}
|
||||
|
||||
public function context(string $name) : FormContext
|
||||
public function context(? string $name = null) : ? FormContext
|
||||
{
|
||||
return $this->contextList[$name];
|
||||
return $name ? $this->contextList[$name] : array_values($this->contextList)[0] ?? null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user