- Bug corrected within definitions which were still tied to the test project.
- Added pagination widget.
This commit is contained in:
1 parent
98d1685172
commit
52e55f2bba
10 files changed
+50
-22
No files matched your search
@@ -35,7 +35,7 @@ trait ControllerTrait {
|
||||
public ? MailerInterface $mailer;
|
||||
|
||||
public array $contextList = [];
|
||||
|
||||
#medias
|
||||
public function exportJson(ServerRequestInterface $request, string $entityClass, bool $includeRelations = true, ? callable $callback = null) : ResponseInterface
|
||||
{
|
||||
foreach($entityClass::repository()->filterServerRequest( $entityClass::searchRequest()->fromRequest($request->withQueryParams($request->getQueryParams() + ['limit' => PHP_INT_MAX,])) )->loadAll() as $entity) {
|
||||
|
||||
+3
-1
@@ -59,7 +59,9 @@ class Kernel {
|
||||
|
||||
// Paths and directories
|
||||
foreach($this->paths as $name => $envkey) {
|
||||
static::putenv($name, realpath(getenv("PROJECT_PATH") . DIRECTORY_SEPARATOR . getenv($envkey)));
|
||||
if ( ! getenv($name) ) {
|
||||
static::putenv($name, realpath(getenv("PROJECT_PATH") . DIRECTORY_SEPARATOR . getenv($envkey)));
|
||||
}
|
||||
}
|
||||
|
||||
// Override using headers
|
||||
|
||||
+6
-1
@@ -41,7 +41,7 @@ class Lean
|
||||
public function getPiceaContext() : string
|
||||
{
|
||||
foreach(array_reverse($this->applications) as $apps) {
|
||||
if ( $apps->piceaContext ) {
|
||||
if ( $apps->piceaContext ?? null ) {
|
||||
return $apps->piceaContext;
|
||||
}
|
||||
}
|
||||
@@ -54,6 +54,11 @@ class Lean
|
||||
return array_merge(...array_map(fn($app) => $app->routes ?? [], $this->applications));
|
||||
}
|
||||
|
||||
public function getEntities() : array
|
||||
{
|
||||
return array_merge(...array_map(fn($app) => $app->entities ?? [], $this->applications));
|
||||
}
|
||||
|
||||
public function getViewPaths() : array
|
||||
{
|
||||
$list = array_merge(...array_map(fn($app) => $app->views ?? [], $this->applications));
|
||||
|
||||
Reference in new issue
Block a user