- Added PHP 8.5 supports
- Fixed some minor bugs
This commit is contained in:
parent
347e3c3b6c
commit
ec313ff269
@ -18,4 +18,5 @@ return [
|
|||||||
ThrowableHandlerInterface::class => autowire(ThrowableHandler::class),
|
ThrowableHandlerInterface::class => autowire(ThrowableHandler::class),
|
||||||
NotFoundDecoratorInterface::class => autowire(NotFoundDecorator::class),
|
NotFoundDecoratorInterface::class => autowire(NotFoundDecorator::class),
|
||||||
# MethodNotAllowedInterface::class => autowire(MethodNotAllowedDecorator::class),
|
# MethodNotAllowedInterface::class => autowire(MethodNotAllowedDecorator::class),
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@ -15,10 +15,7 @@ use Notes\Breadcrumb\Breadcrumb;
|
|||||||
|
|
||||||
use Storage\SessionMiddleware;
|
use Storage\SessionMiddleware;
|
||||||
|
|
||||||
use Ulmus\User\Middleware\{
|
use Psr\Http\Message\{ ResponseInterface, ServerRequestInterface };
|
||||||
HeaderAuthenticationMiddleware,
|
|
||||||
PostRequestAuthenticationMiddleware
|
|
||||||
};
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
Lean\Routing::class => autowire(Lean\Routing::class),
|
Lean\Routing::class => autowire(Lean\Routing::class),
|
||||||
|
|||||||
@ -27,7 +27,8 @@ class Composer
|
|||||||
$source = static::createPath('vendor', 'mcnd', 'lean', 'skeleton');
|
$source = static::createPath('vendor', 'mcnd', 'lean', 'skeleton');
|
||||||
$dest = static::createPath('skeleton');
|
$dest = static::createPath('skeleton');
|
||||||
|
|
||||||
`cp -a $source $dest`;
|
shell_exec("cp -a $source $dest");
|
||||||
|
#`cp -a $source $dest`;
|
||||||
|
|
||||||
$iterator = new \RecursiveDirectoryIterator($dest);
|
$iterator = new \RecursiveDirectoryIterator($dest);
|
||||||
$iterator->setFlags(\RecursiveDirectoryIterator::SKIP_DOTS);
|
$iterator->setFlags(\RecursiveDirectoryIterator::SKIP_DOTS);
|
||||||
|
|||||||
@ -123,7 +123,7 @@ class Kernel
|
|||||||
if (getenv("APP_ENV") === "prod") {
|
if (getenv("APP_ENV") === "prod") {
|
||||||
if (getenv("CACHE_PATH")) {
|
if (getenv("CACHE_PATH")) {
|
||||||
# check if ACPU is there first,
|
# check if ACPU is there first,
|
||||||
$containerBuilder->enableDefinitionCache();
|
# $containerBuilder->enableDefinitionCache(); # Do not work .. ?
|
||||||
|
|
||||||
$containerBuilder->enableCompilation(getenv("CACHE_PATH") . "/di/");
|
$containerBuilder->enableCompilation(getenv("CACHE_PATH") . "/di/");
|
||||||
# No proxies yet... $containerBuilder->writeProxiesToFile(true, getenv("CACHE_PATH") . "/di/");
|
# No proxies yet... $containerBuilder->writeProxiesToFile(true, getenv("CACHE_PATH") . "/di/");
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
<meta http-equiv="Content-Type" content="text/html; ">
|
<meta http-equiv="Content-Type" content="text/html; ">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<title>{{ title() }}</title>
|
<title>{{ title() }}</title>
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
{% slot "week.heading", $day, $month, $year %}
|
{% slot "week.heading", $day, $month, $year %}
|
||||||
<div class="day-box">
|
<div class="day-box">
|
||||||
{# Random calendar date that starts on a sunday #}
|
{# Random calendar date that starts on a sunday #}
|
||||||
{{ substr(( new Date("2019-12-$day") )->formatLocale("%A"), 0, 3) }}
|
{{ new Date("2019-12-$day")->formatLocaleIntl(\IntlDateFormatter::SHORT, \IntlDateFormatter::NONE, 'EEE') }}
|
||||||
</div>
|
</div>
|
||||||
{% endslot %}
|
{% endslot %}
|
||||||
{% endforeach %}
|
{% endforeach %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user