Compare commits

..

No commits in common. "80dee6de862a9b6c69ce4e25f3d37e801c4e2785" and "8892edd19eb7e2791421c39d3b19c8ea6540c8ae" have entirely different histories.

3 changed files with 5 additions and 13 deletions

View File

@ -2,7 +2,7 @@
use function DI\autowire, DI\create, DI\get; use function DI\autowire, DI\create, DI\get;
use Zend\Diactoros\Response\HtmlResponse; use Zend\Diactoros\Response\TextResponse;
use TheBugs\JavascriptMiddleware; use TheBugs\JavascriptMiddleware;
@ -68,8 +68,8 @@ return [
CronardMiddleware::class => function($c) { CronardMiddleware::class => function($c) {
$cronardMiddleware = new CronardMiddleware($c, getenv('CRON_KEY'), function() : ResponseInterface { $cronardMiddleware = new CronardMiddleware($c, getenv('CRON_KEY'), function() : ResponseInterface {
return new HtmlResponse(sprintf("%s - cron task begin...", date('Y-m-d H:i:s'))); return new TextResponse(sprintf("%s - cron task begin...", date('Y-m-d H:i:s')));
}, [], $c->get(TaskFetcher::class)); });
return $cronardMiddleware->fromFile(getenv("META_PATH")."/crontab.php")->fromAnnotations($c->get(TaskFetcher::class)); return $cronardMiddleware->fromFile(getenv("META_PATH")."/crontab.php")->fromAnnotations($c->get(TaskFetcher::class));
}, },

View File

@ -18,8 +18,7 @@ use Psr\Http\Message\ResponseInterface;
use TheBugs\Email\MailerInterface; use TheBugs\Email\MailerInterface;
use Notes\Cronard\Annotation\Method\Cronard, use Notes\Route\Annotation\Object\Route as RouteParam,
Notes\Route\Annotation\Object\Route as RouteParam,
Notes\Route\Annotation\Method\Route, Notes\Route\Annotation\Method\Route,
Notes\Security\Annotation\Security, Notes\Security\Annotation\Security,
Notes\Security\Annotation\Taxus, Notes\Security\Annotation\Taxus,

View File

@ -1,11 +1,4 @@
{% php {% php $messageList = array_filter(array_merge($this->contextList, [ $context ?? null ])) %}
$messageList = $this->contextList;
$context ??= false;
if ($context && ! in_array($context, $messageList)) {
$messageList[] = $context;
}
%}
{% if $messageList %} {% if $messageList %}
<div class="message-wrapper">{% php <div class="message-wrapper">{% php