@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | * |
116 | 116 | * @param string $path path to tar.gz/zip plugin file |
117 | 117 | * @param int $source |
118 | - * @return mixed |
|
118 | + * @return boolean |
|
119 | 119 | * @throws PluginException |
120 | 120 | * @throws \Exception |
121 | 121 | */ |
@@ -180,6 +180,10 @@ discard block |
||
180 | 180 | } |
181 | 181 | |
182 | 182 | // インストール事後処理 |
183 | + |
|
184 | + /** |
|
185 | + * @param integer $source |
|
186 | + */ |
|
183 | 187 | public function postInstall($config, $event, $source) |
184 | 188 | { |
185 | 189 | // Proxyのクラスをロードせずにスキーマを更新するために、 |
@@ -226,6 +230,10 @@ discard block |
||
226 | 230 | } |
227 | 231 | } |
228 | 232 | |
233 | + /** |
|
234 | + * @param string $archive |
|
235 | + * @param string $dir |
|
236 | + */ |
|
229 | 237 | public function unpackPluginArchive($archive, $dir) |
230 | 238 | { |
231 | 239 | $extension = pathinfo($archive, PATHINFO_EXTENSION); |
@@ -285,6 +293,9 @@ discard block |
||
285 | 293 | } |
286 | 294 | } |
287 | 295 | |
296 | + /** |
|
297 | + * @param string $yml |
|
298 | + */ |
|
288 | 299 | public function readYml($yml) |
289 | 300 | { |
290 | 301 | if (file_exists($yml)) { |
@@ -302,6 +313,9 @@ discard block |
||
302 | 313 | // ディレクトリ名などに使われれるので厳しめ |
303 | 314 | } |
304 | 315 | |
316 | + /** |
|
317 | + * @param string $path |
|
318 | + */ |
|
305 | 319 | public function deleteFile($path) |
306 | 320 | { |
307 | 321 | $f = new Filesystem(); |
@@ -321,6 +335,9 @@ discard block |
||
321 | 335 | return $this->appConfig['plugin_realdir'].'/'.$name; |
322 | 336 | } |
323 | 337 | |
338 | + /** |
|
339 | + * @param string $d |
|
340 | + */ |
|
324 | 341 | public function createPluginDir($d) |
325 | 342 | { |
326 | 343 | $b = @mkdir($d); |
@@ -378,6 +395,9 @@ discard block |
||
378 | 395 | return $p; |
379 | 396 | } |
380 | 397 | |
398 | + /** |
|
399 | + * @param string $method |
|
400 | + */ |
|
381 | 401 | public function callPluginManagerMethod($meta, $method) |
382 | 402 | { |
383 | 403 | $class = '\\Plugin'.'\\'.$meta['code'].'\\'.'PluginManager'; |
@@ -888,7 +908,7 @@ discard block |
||
888 | 908 | * [プラグインコード]/Resource/assets |
889 | 909 | * 配下に置かれているファイルが所定の位置へコピーされる |
890 | 910 | * |
891 | - * @param $pluginBaseDir |
|
911 | + * @param string $pluginBaseDir |
|
892 | 912 | * @param $pluginCode |
893 | 913 | */ |
894 | 914 | public function copyAssets($pluginBaseDir, $pluginCode) |
@@ -923,7 +943,7 @@ discard block |
||
923 | 943 | * |
924 | 944 | * @param string $pluginVersion |
925 | 945 | * @param string $remoteVersion |
926 | - * @return mixed |
|
946 | + * @return boolean |
|
927 | 947 | */ |
928 | 948 | public function isUpdate($pluginVersion, $remoteVersion) |
929 | 949 | { |
@@ -33,7 +33,6 @@ |
||
33 | 33 | use Eccube\Entity\Plugin; |
34 | 34 | use Eccube\Entity\PluginEventHandler; |
35 | 35 | use Eccube\Exception\PluginException; |
36 | -use Eccube\Plugin\ConfigManager; |
|
37 | 36 | use Eccube\Plugin\ConfigManager as PluginConfigManager; |
38 | 37 | use Eccube\Repository\PluginEventHandlerRepository; |
39 | 38 | use Eccube\Repository\PluginRepository; |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | try { |
275 | 275 | $this->composerService->execRequire($packageNames); |
276 | 276 | // Do report to package repo |
277 | - $url = $this->appConfig['package_repo_url'] . '/report'; |
|
277 | + $url = $this->appConfig['package_repo_url'].'/report'; |
|
278 | 278 | $this->postRequestApi($url, $data); |
279 | 279 | $app->addSuccess('admin.plugin.install.complete', 'admin'); |
280 | 280 | |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | } |
285 | 285 | |
286 | 286 | // Do report to package repo |
287 | - $url = $this->appConfig['package_repo_url'] . '/report/fail'; |
|
287 | + $url = $this->appConfig['package_repo_url'].'/report/fail'; |
|
288 | 288 | $this->postRequestApi($url, $data); |
289 | 289 | $app->addError('admin.plugin.install.fail', 'admin'); |
290 | 290 |