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