Ejemplo n.º 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);
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 3
0
 private function __construct(array $config = [])
 {
     ObjectHelper::loadAttrs($this, $config);
 }
Ejemplo n.º 4
0
 /**
  * @param array $options
  */
 public function __construct(array $options = [])
 {
     ObjectHelper::loadAttrs($this, $options);
 }
Ejemplo n.º 5
0
 /**
  * @param array $config
  */
 public function __construct(array $config = [])
 {
     /**
      * reset settings
      */
     $this->reset();
     ObjectHelper::loadAttrs($this, $config);
 }