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