get() public method

Get values from the config data.
public get ( string $path )
$path string The path you want.
コード例 #1
0
 /**
  * Create an AssetWriter
  *
  * @param string $tmpPath The path where the build timestamp lookup should be stored.
  * @return MiniAsset\AssetWriter
  */
 public function writer($tmpPath = '')
 {
     if (!$tmpPath) {
         $tmpPath = sys_get_temp_dir() . DIRECTORY_SEPARATOR;
     }
     $timestamp = ['js' => $this->config->get('js.timestamp'), 'css' => $this->config->get('css.timestamp')];
     $writer = new AssetWriter($timestamp, $tmpPath, $this->config->theme());
     $writer->configTimestamp($this->config->modifiedTime());
     $writer->filterRegistry($this->filterRegistry());
     return $writer;
 }