__construct() public method

public __construct ( mixed[] $context = [] )
$context mixed[]
Ejemplo n.º 1
0
 /**
  * @param mixed[] $context
  * @throws InstantiationException
  */
 public function __construct($context = [])
 {
     if (!isset($context['runtime'])) {
         throw new InstantiationException('[' . __CLASS__ . '] could not been initialized.');
     }
     $this->runtime = $context['runtime'];
     unset($context['runtime']);
     parent::__construct($context);
 }
Ejemplo n.º 2
0
 /**
  * @param mixed[] $context
  */
 public function __construct($context = [])
 {
     $this->model = $context['model'];
     $this->queue =& $context['queue'];
     parent::__construct($context);
 }