| @@ 54-58 (lines=5) @@ | ||
| 51 | $adminRoot = $app['config']['admin_route']; |
|
| 52 | ||
| 53 | $configFile = $app['config']['root_dir'].'/app/config/eccube/config'; |
|
| 54 | if (file_exists($configFile.'.php')) { |
|
| 55 | $config = require $configFile.'.php'; |
|
| 56 | } elseif (file_exists($configFile.'.yml')) { |
|
| 57 | $config = Yaml::parse(file_get_contents($configFile.'.yml')); |
|
| 58 | } |
|
| 59 | ||
| 60 | // trim処理 |
|
| 61 | $allowHost = Str::convertLineFeed($data['admin_allow_host']); |
|
| @@ 95-99 (lines=5) @@ | ||
| 92 | // admin_routeが変更されればpath.(yml|php)を更新 |
|
| 93 | $pathFile = $app['config']['root_dir'].'/app/config/eccube/path'; |
|
| 94 | ||
| 95 | if (file_exists($pathFile.'.php')) { |
|
| 96 | $config = require $pathFile.'.php'; |
|
| 97 | } elseif (file_exists($pathFile.'.yml')) { |
|
| 98 | $config = Yaml::parse(file_get_contents($pathFile.'.yml')); |
|
| 99 | } |
|
| 100 | ||
| 101 | $config['admin_route'] = $data['admin_route_dir']; |
|
| 102 | ||
| @@ 69-73 (lines=5) @@ | ||
| 66 | ||
| 67 | // path.(yml|php)の再構築 |
|
| 68 | $file = $app['config']['root_dir'].'/app/config/eccube/path'; |
|
| 69 | if (file_exists($file.'.php')) { |
|
| 70 | $config = require $file.'.php'; |
|
| 71 | } elseif (file_exists($file.'.yml')) { |
|
| 72 | $config = Yaml::parse(file_get_contents($file.'.yml')); |
|
| 73 | } |
|
| 74 | ||
| 75 | $templateCode = $Template->getCode(); |
|
| 76 | $config['template_code'] = $templateCode; |
|