示例#1
0
 public function __construct(Logger $logger, $ipcSock, Bootstrapper $bootstrapper = null)
 {
     parent::__construct($logger);
     $this->logger = $logger;
     $this->ipcSock = $ipcSock;
     $this->bootstrapper = $bootstrapper ?: new Bootstrapper();
 }
 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
0
 public function __construct(Logger $logger)
 {
     parent::__construct($logger);
     $this->logger = $logger;
     $this->procGarbageWatcher = \Amp\repeat(function () {
         $this->collectProcessGarbage();
     }, 100, ["enable" => false]);
 }
 /**
  * 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
0
 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
0
 /**
  * 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
0
 /**
  * @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);
 }
 /**
  * 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;
 }