@@ 138-140 (lines=3) @@ | ||
135 | if (!is_array($meta)) { |
|
136 | throw new PluginException('config.yml not found or syntax error'); |
|
137 | } |
|
138 | if (!isset($meta['code']) || !$this->checkSymbolName($meta['code'])) { |
|
139 | throw new PluginException('config.yml code empty or invalid_character(\W)'); |
|
140 | } |
|
141 | if (!isset($meta['name'])) { |
|
142 | // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし |
|
143 | throw new PluginException('config.yml name empty'); |
|
@@ 145-147 (lines=3) @@ | ||
142 | // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし |
|
143 | throw new PluginException('config.yml name empty'); |
|
144 | } |
|
145 | if (isset($meta['event']) && !$this->checkSymbolName($meta['event'])) { // eventだけは必須ではない |
|
146 | throw new PluginException('config.yml event empty or invalid_character(\W) '); |
|
147 | } |
|
148 | if (!isset($meta['version'])) { |
|
149 | // versionは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし |
|
150 | throw new PluginException('config.yml version invalid_character(\W) '); |