modify
This commit is contained in:
@@ -35,8 +35,8 @@ class CrontabProcess extends Process
|
|||||||
{
|
{
|
||||||
while (true) {
|
while (true) {
|
||||||
$content = $process->read();
|
$content = $process->read();
|
||||||
var_dump($content);
|
|
||||||
$_content = json_decode($content, true);
|
$_content = json_decode($content, true);
|
||||||
|
var_dump($content, $_content);
|
||||||
if (is_null($_content)) {
|
if (is_null($_content)) {
|
||||||
$this->jobDelivery($content);
|
$this->jobDelivery($content);
|
||||||
} else {
|
} else {
|
||||||
@@ -66,7 +66,7 @@ class CrontabProcess extends Process
|
|||||||
default => function () {
|
default => function () {
|
||||||
$this->application->error('unknown action');
|
$this->application->error('unknown action');
|
||||||
}
|
}
|
||||||
});
|
}, $content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -76,6 +76,7 @@ class CrontabProcess extends Process
|
|||||||
private function jobDelivery($content)
|
private function jobDelivery($content)
|
||||||
{
|
{
|
||||||
$content = unserialize($content);
|
$content = unserialize($content);
|
||||||
|
var_dump($content);
|
||||||
$this->names[$content->getName()] = $content;
|
$this->names[$content->getName()] = $content;
|
||||||
if (!($content instanceof Crontab)) {
|
if (!($content instanceof Crontab)) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user