@@ -31,7 +31,7 @@ |
||
| 31 | 31 | { |
| 32 | 32 | /** |
| 33 | 33 | * FormExtensionAutoWiring constructor. |
| 34 | - * @param array|string[] $scanDirs |
|
| 34 | + * @param string[] $scanDirs |
|
| 35 | 35 | */ |
| 36 | 36 | public function __construct($scanDirs) |
| 37 | 37 | { |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | { |
| 31 | 31 | /** |
| 32 | 32 | * RepositoryAutoWiring constructor. |
| 33 | - * @param array|string[] $scanDirs |
|
| 33 | + * @param string[] $scanDirs |
|
| 34 | 34 | */ |
| 35 | 35 | public function __construct($scanDirs) |
| 36 | 36 | { |
@@ -30,8 +30,8 @@ |
||
| 30 | 30 | { |
| 31 | 31 | /** |
| 32 | 32 | * RepositoryDefinition constructor. |
| 33 | - * @param $id |
|
| 34 | - * @param $refClass |
|
| 33 | + * @param string $id |
|
| 34 | + * @param \ReflectionClass $refClass |
|
| 35 | 35 | */ |
| 36 | 36 | public function __construct($id, $refClass) |
| 37 | 37 | { |
@@ -194,7 +194,7 @@ |
||
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | 196 | * EntityからTraitを削除. |
| 197 | - * @param $entityTokens Tokens Entityのトークン |
|
| 197 | + * @param Tokens $entityTokens Tokens Entityのトークン |
|
| 198 | 198 | * @param $trait string 削除するTraitのFQCN |
| 199 | 199 | */ |
| 200 | 200 | private function removeTrait($entityTokens, $trait) |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | * This method should only be used to configure services and parameters. |
| 17 | 17 | * It should not get services. |
| 18 | 18 | * |
| 19 | - * @param Container $pimple A container instance |
|
| 20 | 19 | */ |
| 21 | 20 | public function register(Container $app) |
| 22 | 21 | { |
@@ -92,6 +92,10 @@ discard block |
||
| 92 | 92 | const VENDOR_NAME = 'ec-cube'; |
| 93 | 93 | |
| 94 | 94 | // ファイル指定してのプラグインインストール |
| 95 | + |
|
| 96 | + /** |
|
| 97 | + * @param string $path |
|
| 98 | + */ |
|
| 95 | 99 | public function install($path, $source = 0) |
| 96 | 100 | { |
| 97 | 101 | $pluginBaseDir = null; |
@@ -140,6 +144,10 @@ discard block |
||
| 140 | 144 | } |
| 141 | 145 | |
| 142 | 146 | // インストール事後処理 |
| 147 | + |
|
| 148 | + /** |
|
| 149 | + * @param integer $source |
|
| 150 | + */ |
|
| 143 | 151 | public function postInstall($config, $event, $source) |
| 144 | 152 | { |
| 145 | 153 | // Proxyのクラスをロードせずにスキーマを更新するために、 |
@@ -186,6 +194,9 @@ discard block |
||
| 186 | 194 | } |
| 187 | 195 | } |
| 188 | 196 | |
| 197 | + /** |
|
| 198 | + * @param string $dir |
|
| 199 | + */ |
|
| 189 | 200 | public function unpackPluginArchive($archive, $dir) |
| 190 | 201 | { |
| 191 | 202 | $extension = pathinfo($archive, PATHINFO_EXTENSION); |
@@ -245,6 +256,9 @@ discard block |
||
| 245 | 256 | } |
| 246 | 257 | } |
| 247 | 258 | |
| 259 | + /** |
|
| 260 | + * @param string $yml |
|
| 261 | + */ |
|
| 248 | 262 | public function readYml($yml) |
| 249 | 263 | { |
| 250 | 264 | if (file_exists($yml)) { |
@@ -262,6 +276,9 @@ discard block |
||
| 262 | 276 | // ディレクトリ名などに使われれるので厳しめ |
| 263 | 277 | } |
| 264 | 278 | |
| 279 | + /** |
|
| 280 | + * @param string $path |
|
| 281 | + */ |
|
| 265 | 282 | public function deleteFile($path) |
| 266 | 283 | { |
| 267 | 284 | $f = new Filesystem(); |
@@ -281,6 +298,9 @@ discard block |
||
| 281 | 298 | return $this->appConfig['plugin_realdir'].'/'.$name; |
| 282 | 299 | } |
| 283 | 300 | |
| 301 | + /** |
|
| 302 | + * @param string $d |
|
| 303 | + */ |
|
| 284 | 304 | public function createPluginDir($d) |
| 285 | 305 | { |
| 286 | 306 | $b = @mkdir($d); |
@@ -338,6 +358,9 @@ discard block |
||
| 338 | 358 | return $p; |
| 339 | 359 | } |
| 340 | 360 | |
| 361 | + /** |
|
| 362 | + * @param string $method |
|
| 363 | + */ |
|
| 341 | 364 | public function callPluginManagerMethod($meta, $method) |
| 342 | 365 | { |
| 343 | 366 | $class = '\\Plugin'.'\\'.$meta['code'].'\\'.'PluginManager'; |
@@ -454,6 +477,9 @@ discard block |
||
| 454 | 477 | return true; |
| 455 | 478 | } |
| 456 | 479 | |
| 480 | + /** |
|
| 481 | + * @param string $path |
|
| 482 | + */ |
|
| 457 | 483 | public function update(\Eccube\Entity\Plugin $plugin, $path) |
| 458 | 484 | { |
| 459 | 485 | $pluginBaseDir = null; |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | * @Route("/{_admin}/store/plugin/{id}/enable", requirements={"id" = "\d+"}, name="admin_store_plugin_enable") |
| 280 | 280 | * @param Application $app |
| 281 | 281 | * @param Plugin $Plugin |
| 282 | - * @return RedirectResponse |
|
| 282 | + * @return \Symfony\Component\HttpFoundation\RedirectResponse |
|
| 283 | 283 | */ |
| 284 | 284 | public function enable(Application $app, Plugin $Plugin) |
| 285 | 285 | { |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | * @Route("/{_admin}/store/plugin/{id}/disable", requirements={"id" = "\d+"}, name="admin_store_plugin_disable") |
| 314 | 314 | * @param Application $app |
| 315 | 315 | * @param Plugin $Plugin |
| 316 | - * @return RedirectResponse |
|
| 316 | + * @return \Symfony\Component\HttpFoundation\RedirectResponse |
|
| 317 | 317 | */ |
| 318 | 318 | public function disable(Application $app, Plugin $Plugin) |
| 319 | 319 | { |