Beispiel #1
0
 public function __construct(array $config = [])
 {
     $include = ArrHelper::remove('include', $config, $this->defaultOptions()['include']);
     $exclude = ArrHelper::remove('exclude', $config, $this->defaultOptions()['exclude']);
     $this->finder = new FileFinder(['include' => $include, 'exclude' => $exclude]);
     ObjectHelper::loadAttrs($this, $config);
 }
Beispiel #2
0
 /**
  * don't allow set attribute
  * @param array $options
  * @throws InvalidConfigException
  */
 public function __construct($options = [])
 {
     parent::__construct();
     ObjectHelper::loadAttrs($this, $options);
     if ($this->identityClass === null) {
         throw new InvalidConfigException('User::identityClass must be set.');
     }
     // if have already login
     if (session(self::$saveKey)) {
         $this->refreshIdentity();
     }
 }
Beispiel #3
0
 private function __construct(array $config = [])
 {
     ObjectHelper::loadAttrs($this, $config);
 }
 /**
  * @param array $options
  */
 public function __construct(array $options = [])
 {
     ObjectHelper::loadAttrs($this, $options);
 }
Beispiel #5
0
 /**
  * @param array $config
  */
 public function __construct(array $config = [])
 {
     /**
      * reset settings
      */
     $this->reset();
     ObjectHelper::loadAttrs($this, $config);
 }