This commit is contained in:
2020-09-11 20:06:06 +08:00
parent 8795608259
commit 955171e180
5 changed files with 14 additions and 82 deletions
-29
View File
@@ -1,29 +0,0 @@
<?php
namespace Snowflake\Process;
use Exception;
use Snowflake\Snowflake;
use Swoole\Timer;
/**
* Class Logfilemonitoring
*/
class Leafleting extends Process
{
/**
* @param \Swoole\Process $process
* @return mixed|void
* @throws Exception
*/
public function onHandler(\Swoole\Process $process)
{
Timer::tick(1000, function () use ($process) {
var_dump($process->read());
});
}
}
-12
View File
@@ -1,12 +0,0 @@
<?php
namespace Snowflake\Process;
use Snowflake\Abstracts\Component;
abstract class System extends Component implements ISystem
{
}
-13
View File
@@ -1,13 +0,0 @@
<?php
use Snowflake\Process\Leafleting;
use Snowflake\Process\ServerInotify;
return [
'processes' => [
'Leafleting' => Leafleting::class,
'inotify' => ServerInotify::class,
]
];