改名
This commit is contained in:
@@ -57,12 +57,6 @@ class Service extends Component
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function zookeeper()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $service
|
* @param $service
|
||||||
* @return string
|
* @return string
|
||||||
|
|||||||
+2
-1
@@ -183,6 +183,7 @@ class Crontab extends BaseObject
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function clearTimer()
|
public function clearTimer()
|
||||||
{
|
{
|
||||||
@@ -199,7 +200,7 @@ class Crontab extends BaseObject
|
|||||||
public function execute(): void
|
public function execute(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
call_user_func($this->handler, $this->params);
|
call_user_func($this->handler, $this->params, $this->name);
|
||||||
} catch (\Throwable $throwable) {
|
} catch (\Throwable $throwable) {
|
||||||
$this->addError($throwable->getMessage());
|
$this->addError($throwable->getMessage());
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user