Skip to content

Commit 00beda3

Browse files
committed
fix example contructor
1 parent aae366c commit 00beda3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

examples/service.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@
1717

1818
class MyTestService extends AbstractServiceRunner
1919
{
20-
/**
20+
21+
public function __construct(ServiceIdentifier $serviceIdentifier)
22+
{
23+
parent::__construct();
24+
$this->setServiceId($serviceIdentifier);
25+
}
26+
27+
/**
2128
* This function is runnning in loop. The running duration is limited to 30 seconds
2229
* @param int $control contains the last control.
2330
* @return void

0 commit comments

Comments
 (0)