| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function up(Schema $schema) |
||
| 19 | { |
||
| 20 | // this up() migration is auto-generated, please modify it to your needs |
||
| 21 | |||
| 22 | // path.ymlの更新 |
||
| 23 | $app = Application::getInstance(); |
||
| 24 | $file = $app['config']['root_dir'] . '/app/config/eccube/path.yml'; |
||
|
|
|||
| 25 | $config = Yaml::parse(file_get_contents($file)); |
||
| 26 | |||
| 27 | $config['public_path'] = '/html'; |
||
| 28 | $config['public_path_realdir'] = $config['root_dir'] . $config['public_path']; |
||
| 29 | $config['plugin_html_realdir'] = $config['root_dir'] . $config['public_path'] . '/plugin'; |
||
| 30 | $config['plugin_urlpath'] = $config['root_urlpath'] . '/plugin'; |
||
| 31 | |||
| 32 | file_put_contents($file, Yaml::dump($config)); |
||
| 33 | |||
| 34 | } |
||
| 35 | |||
| 45 |