-
Notifications
You must be signed in to change notification settings - Fork 700
Closed
Description
概要(Overview)
おそらく3系の名残り。4系に config.yml は存在しない
ec-cube/src/Eccube/Service/PluginService.php
Lines 418 to 444 in e9edc3b
| public function checkPluginArchiveContent($dir, array $config_cache = []) | |
| { | |
| try { | |
| if (!empty($config_cache)) { | |
| $meta = $config_cache; | |
| } else { | |
| $meta = $this->readConfig($dir); | |
| } | |
| } catch (\Symfony\Component\Yaml\Exception\ParseException $e) { | |
| throw new PluginException($e->getMessage(), $e->getCode(), $e); | |
| } | |
| if (!is_array($meta)) { | |
| throw new PluginException('config.yml not found or syntax error'); | |
| } | |
| if (!isset($meta['code']) || !$this->checkSymbolName($meta['code'])) { | |
| throw new PluginException('config.yml code empty or invalid_character(\W)'); | |
| } | |
| if (!isset($meta['name'])) { | |
| // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし | |
| throw new PluginException('config.yml name empty'); | |
| } | |
| if (!isset($meta['version'])) { | |
| // versionは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし | |
| throw new PluginException('config.yml version invalid_character(\W) '); | |
| } | |
| } |
再現手順(Procedure)
コードレビューで発見
環境(Environment)
EC-CUBE 4.2
dotani1111