Pimcore\Model\Schedule\Manager\Procedural::__construct PHP Метод

__construct() публичный Метод

public __construct ( $pidFileName )
$pidFileName
    public function __construct($pidFileName)
    {
        $this->_pidFileName = $pidFileName;
    }

Usage Example

Пример #1
0
 public function __construct($pidFileName, $waitForChildrenToFinish = true)
 {
     if (!function_exists("pcntl_fork") or !function_exists("pcntl_waitpid") or !function_exists("pcntl_wexitstatus") or !function_exists("pcntl_signal")) {
         //throw exception if someone tries to instantiate this without having pcntl enabled
         throw new \Exception("pcntnl not available. Cannot create ");
     }
     parent::__construct($pidFileName);
     $this->parentPID = getmypid();
     $this->waitForChildrenToFinish = $waitForChildrenToFinish;
     pcntl_signal(SIGCHLD, array($this, "childSignalHandler"));
 }