本文整理汇总了PHP中Process::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Process::__construct方法的具体用法?PHP Process::__construct怎么用?PHP Process::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Process
的用法示例。
在下文中一共展示了Process::__construct方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct(Logger $logger, $ipcSock, Bootstrapper $bootstrapper = null)
{
parent::__construct($logger);
$this->logger = $logger;
$this->ipcSock = $ipcSock;
$this->bootstrapper = $bootstrapper ?: new Bootstrapper();
}
示例2: __construct
public function __construct(\lib\Webos $webos, \lib\Authorization $auth, $class, $method)
{
//On appelle le constructeur du parent.
parent::__construct($webos, $auth);
$this->className = $class;
$this->methodName = $method;
}
示例3: __construct
public function __construct(Logger $logger)
{
parent::__construct($logger);
$this->logger = $logger;
$this->procGarbageWatcher = \Amp\repeat(function () {
$this->collectProcessGarbage();
}, 100, ["enable" => false]);
}
示例4: __construct
/**
* Initialize new Instance of ProcessWin
*
* @param mixed $cmd command to execute or false if no command should be set
* @return ProcessWin
*/
public function __construct($cmd = false)
{
if (parent::GetSystem() != "win") {
throw new \RuntimeException("Windows processes not running on unix machines");
}
parent::__construct($cmd);
}
示例5: __construct
public function __construct($script, $cwd = null, array $env = array(), $timeout = 60, array $options = array())
{
parent::__construct(null, $cwd, $env, $script, $timeout, $options);
$this->executableFinder = new PhpExecutableFinder();
}
示例6: __construct
/**
* Constructor.
*
* @param string $script The PHP script to run (as a string)
* @param string $cwd The working directory
* @param array $env The environment variables
* @param integer $timeout The timeout in seconds
* @param array $options An array of options for proc_open
*/
public function __construct($script, $cwd = null, array $env = array(), $timeout = 60, array $options = array())
{
parent::__construct(null, $cwd, $env, $script, $timeout, $options);
}
示例7: __construct
/**
* @param PhpExecutable $phpExecutable
* @param array $parameters
* @param string|null $stdIn
*/
public function __construct(PhpExecutable $phpExecutable, array $parameters = array(), $stdIn = null)
{
$cmdLine = escapeshellcmd($phpExecutable->getPath()) . ' ' . $this->constructParameters($parameters, $phpExecutable->isIsHhvmType());
parent::__construct($cmdLine, $stdIn);
}
示例8: __construct
/**
* Initialise le processus.
* @param Webos $webos Le webos.
* @param Authorization $auth Les authorisations du processus.
* @param string $path Le chemin vers le programme.
*/
public function __construct(\lib\Webos $webos, \lib\Authorization $auth, $path)
{
//On appelle le constructeur du parent.
parent::__construct($webos, $auth);
$this->path = $path;
}