mirror of
https://github.com/friendica/friendica
synced 2025-04-23 15:50:25 +00:00
Use getmypid() as dependency (improve testing)
This commit is contained in:
parent
7413b362f5
commit
c9e510d4fd
3 changed files with 4 additions and 3 deletions
|
@ -67,14 +67,14 @@ class Process
|
|||
*/
|
||||
private $pid;
|
||||
|
||||
public function __construct(LoggerInterface $logger, App\Mode $mode, IConfig $config, Model\Process $processModel, string $basepath)
|
||||
public function __construct(LoggerInterface $logger, App\Mode $mode, IConfig $config, Model\Process $processModel, string $basepath, int $pid)
|
||||
{
|
||||
$this->logger = $logger;
|
||||
$this->mode = $mode;
|
||||
$this->config = $config;
|
||||
$this->basePath = $basepath;
|
||||
$this->processModel = $processModel;
|
||||
$this->pid = getmypid();
|
||||
$this->pid = $pid;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue