- Added a new Email defintion (which will soon see it's components changed)

- Added a new post-install script for composer which adds a project skeleton "ready to use".
- Error 500 are now handled properly in production; waiting to see if adjustements will be required before adding other code pages.
This commit is contained in:
mcndave committed 2021-03-01 16:01:27 +00:00
1 parent 09b3e47c19
commit 01bb926ca7
30 files changed
+887 -2

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
<?php declare(strict_types=1);
namespace %NAMESPACE%;
use Ulmus\ConnectionAdapter;
require_once dirname(__DIR__) . '/vendor/autoload.php';
new class(dirname(__DIR__)) extends \Lean\Kernel {
public array $paths = [
'CACHE_PATH' => "CACHE_DIR",
'LOGS_PATH' => "LOGS_DIR",
'META_PATH' => "META_DIR",
'PUBLIC_PATH' => "PUBLIC_DIR",
'PRIVATE_PATH' => "PRIVATE_DIR",
'VIEW_PATH' => "VIEW_DIR",
];
protected function initializeEngine() : self
{
$this->errorLogPath = getenv("LOGS_PATH") . DIRECTORY_SEPARATOR. date("Y-m").".log";
$this->definitionFilePath = implode(DIRECTORY_SEPARATOR, [ getenv('META_PATH'), 'definitions', 'definitions.php' ]);
return parent::initializeEngine();
}
protected function serviceContainer() : self
{
# $this->container->get(ConnectionAdapter::class);
return parent::serviceContainer();
}
};