__construct() 공개 메소드

public __construct ( mixed[] $context = [] )
$context mixed[]
예제 #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);
 }
예제 #2
0
 /**
  * @param mixed[] $context
  */
 public function __construct($context = [])
 {
     $this->model = $context['model'];
     $this->queue =& $context['queue'];
     parent::__construct($context);
 }