|
@@ 280-282 (lines=3) @@
|
| 277 |
|
if (!is_array($meta)) { |
| 278 |
|
throw new PluginException('config.yml not found or syntax error'); |
| 279 |
|
} |
| 280 |
|
if (!isset($meta['code']) || !$this->checkSymbolName($meta['code'])) { |
| 281 |
|
throw new PluginException('config.yml code empty or invalid_character(\W)'); |
| 282 |
|
} |
| 283 |
|
if (!isset($meta['name'])) { |
| 284 |
|
// nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし |
| 285 |
|
throw new PluginException('config.yml name empty'); |
|
@@ 287-289 (lines=3) @@
|
| 284 |
|
// nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし |
| 285 |
|
throw new PluginException('config.yml name empty'); |
| 286 |
|
} |
| 287 |
|
if (isset($meta['event']) && !$this->checkSymbolName($meta['event'])) { // eventだけは必須ではない |
| 288 |
|
throw new PluginException('config.yml event empty or invalid_character(\W) '); |
| 289 |
|
} |
| 290 |
|
if (!isset($meta['version'])) { |
| 291 |
|
// versionは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし |
| 292 |
|
throw new PluginException('config.yml version invalid_character(\W) '); |