예제 #1
0
 /**
  * {@inheritdoc}
  *
  * @param array $params
  */
 public function __construct($type, array $params = [])
 {
     parent::__construct($type);
     $params += ['resource' => null, 'access_control' => null];
     $this->resource = $params['resource'];
     $this->accessControl = $params['access_control'];
 }
예제 #2
0
 /**
  * {@inheritdoc}
  *
  * @param array $params
  */
 public function __construct($type, array $params = [])
 {
     parent::__construct($type);
     $params += ['section' => null, 'content' => null, 'options' => null];
     $this->section = $params['section'];
     $this->content = $params['content'];
     $this->options = $params['options'];
 }
예제 #3
0
 /**
  * {@inheritdoc}
  *
  * @param array $params
  */
 public function __construct($type, array $params = [])
 {
     parent::__construct($type);
     $params += ['message' => null];
     $this->message = $params['message'];
 }