Crunz\Event::start PHP Метод

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

Start the event execution
public start ( ) : integer
Результат integer
    public function start()
    {
        $this->setProcess(new Process($this->buildCommand()));
        $this->getProcess()->start();
        if ($this->preventOverlapping) {
            $this->lock();
        }
        return $this->getProcess()->getPid();
    }

Usage Example

Пример #1
0
 /**
  * Run an event process
  *
  *
  * @param \Crunz\Event $event
  */
 protected function start(Event $event)
 {
     // Running the before-callbacks
     $event->outputStream = $this->invoke($event->beforeCallbacks());
     $event->start();
 }