示例#1
0
文件: Menu.php 项目: jpalala/codex
 /**
  * Parse the menu config.
  *
  * @param  string $string
  * @return string
  */
 protected function parseConfig($string)
 {
     foreach (array_dot($this->project->getConfig()) as $key => $value) {
         $string = str_replace('${project.' . $key . '}', $value, $string);
     }
     return $string;
 }