|
@@ 261-263 (lines=3) @@
|
| 258 |
|
if (!is_array($meta)) { |
| 259 |
|
throw new PluginException('config.yml not found or syntax error'); |
| 260 |
|
} |
| 261 |
|
if (!isset($meta['code']) || !$this->checkSymbolName($meta['code'])) { |
| 262 |
|
throw new PluginException('config.yml code empty or invalid_character(\W)'); |
| 263 |
|
} |
| 264 |
|
if (!isset($meta['name'])) { |
| 265 |
|
// nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし |
| 266 |
|
throw new PluginException('config.yml name empty'); |
|
@@ 268-270 (lines=3) @@
|
| 265 |
|
// nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし |
| 266 |
|
throw new PluginException('config.yml name empty'); |
| 267 |
|
} |
| 268 |
|
if (isset($meta['event']) && !$this->checkSymbolName($meta['event'])) { // eventだけは必須ではない |
| 269 |
|
throw new PluginException('config.yml event empty or invalid_character(\W) '); |
| 270 |
|
} |
| 271 |
|
if (!isset($meta['version'])) { |
| 272 |
|
// versionは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし |
| 273 |
|
throw new PluginException('config.yml version invalid_character(\W) '); |