|
@@ 173-175 (lines=3) @@
|
| 170 |
|
if (!is_array($meta)) { |
| 171 |
|
throw new PluginException('config.yml not found or syntax error'); |
| 172 |
|
} |
| 173 |
|
if (!isset($meta['code']) || !$this->checkSymbolName($meta['code'])) { |
| 174 |
|
throw new PluginException('config.yml code empty or invalid_character(\W)'); |
| 175 |
|
} |
| 176 |
|
if (!isset($meta['name'])) { |
| 177 |
|
// nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし |
| 178 |
|
throw new PluginException('config.yml name empty'); |
|
@@ 180-182 (lines=3) @@
|
| 177 |
|
// nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし |
| 178 |
|
throw new PluginException('config.yml name empty'); |
| 179 |
|
} |
| 180 |
|
if (isset($meta['event']) && !$this->checkSymbolName($meta['event'])) { // eventだけは必須ではない |
| 181 |
|
throw new PluginException('config.yml event empty or invalid_character(\W) '); |
| 182 |
|
} |
| 183 |
|
if (!isset($meta['version'])) { |
| 184 |
|
// versionは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし |
| 185 |
|
throw new PluginException('config.yml version invalid_character(\W) '); |