Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function __construct(array $options)
 {
     parent::__construct($options);
     $config = $this->getConfig();
     // If the plugin service is not constructed, the service container can't set config for it
     if (!$this->wei->isInstanced('plugin')) {
         $this->wei->set('plugin', $this);
     }
     // Load configs to services
     $this->wei->setConfig($config + ['event' => ['loadEvent' => [$this, 'loadEvent']], 'view' => ['parseResource' => [$this, 'parseViewResource']], 'asset' => ['locateFile' => [$this, 'locateFile']]]);
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function __construct(array $options)
 {
     parent::__construct($options);
     $this->prepareTable();
 }