21 $this->_config = $config;
41 if($config = $this->
config(
'client'))
foreach($config as $key => &$value)
42 if(is_string($value)) $value = $this->
component(
'trans')->str($value);
53 public function config($key,$default =
null){
54 return \Rsi\Record::get($this->_config,$key,$default);
67 $key = str_replace($this->_fred->rootPath,
'~',$filename);
70 ($file_time = \
Rsi\Record::get($file_times = $this->session->fileTimes ?: [],$key)) &&
71 ($file_time[
'check'] >= $check_time - $this->filemtimeTtl)
72 )
return $file_time[
'time'];
73 $this->session->fileTimes = [$key => [
'time' => $time = \Rsi\File::mtime($filename),
'check' => $check_time]] + $file_times;
82 if(array_key_exists($name,$this->_components))
return $this->_components[$name];
83 return $this->_fred->may($name) ?:
false;
92 foreach($names as $name) $components[$name] = $this->
component($name);
97 if(!$this->_session) $this->_session =
new Component\Session(get_called_class());