Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function __construct($name = null)
 {
     // Construct parent context (also calls configure)
     parent::__construct($name);
     $this->configureDaemonDefinition();
     // Set our runloop as the executable code
     parent::setCode(array($this, 'daemon'));
     $this->setCode(array($this, 'execute'));
 }