@@ -30,10 +30,10 @@ |
||
| 30 | 30 | use Eccube\Util\FormUtil; |
| 31 | 31 | use Knp\Component\Pager\Paginator; |
| 32 | 32 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 33 | -use Symfony\Component\HttpFoundation\Request; |
|
| 34 | -use Symfony\Component\HttpKernel\KernelEvents; |
|
| 35 | 33 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
| 34 | +use Symfony\Component\HttpFoundation\Request; |
|
| 36 | 35 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
| 36 | +use Symfony\Component\HttpKernel\KernelEvents; |
|
| 37 | 37 | use Symfony\Component\Routing\Annotation\Route; |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -22,11 +22,11 @@ |
||
| 22 | 22 | use Eccube\Exception\PluginException; |
| 23 | 23 | use Eccube\Repository\PluginRepository; |
| 24 | 24 | use Eccube\Service\Composer\ComposerServiceInterface; |
| 25 | +use Eccube\Service\SystemService; |
|
| 25 | 26 | use Eccube\Util\CacheUtil; |
| 26 | 27 | use Eccube\Util\StringUtil; |
| 27 | 28 | use Symfony\Component\DependencyInjection\ContainerInterface; |
| 28 | 29 | use Symfony\Component\Filesystem\Filesystem; |
| 29 | -use Eccube\Service\SystemService; |
|
| 30 | 30 | |
| 31 | 31 | class PluginService |
| 32 | 32 | { |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | PluginApiService $pluginApiService, |
| 97 | 97 | ComposerServiceInterface $composerService, |
| 98 | 98 | SystemService $systemService |
| 99 | - ){ |
|
| 99 | + ) { |
|
| 100 | 100 | $this->pluginRepository = $pluginRepository; |
| 101 | 101 | $this->pluginService = $pluginService; |
| 102 | 102 | $this->BaseInfo = $baseInfoRepository->get(); |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | // TERMINATE時のイベントを設定 |
| 291 | 291 | $dispatcher->addListener(KernelEvents::TERMINATE, function () { |
| 292 | 292 | // auto_maintenance_updateと設定されたファイルを削除 |
| 293 | - $this->systemService->switchMaintenance(false,SystemService::AUTO_MAINTENANCE_UPDATE); |
|
| 293 | + $this->systemService->switchMaintenance(false, SystemService::AUTO_MAINTENANCE_UPDATE); |
|
| 294 | 294 | }); |
| 295 | 295 | } |
| 296 | 296 | |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | $this->systemService->switchMaintenance(true); // auto_maintenanceと設定されたファイルを生成 |
| 385 | 385 | // TERMINATE時のイベントを設定 |
| 386 | 386 | $dispatcher->addListener(KernelEvents::TERMINATE, function () { |
| 387 | - $this->systemService->switchMaintenance();// auto_maintenanceと設定されたファイルを削除 |
|
| 387 | + $this->systemService->switchMaintenance(); // auto_maintenanceと設定されたファイルを削除 |
|
| 388 | 388 | }); |
| 389 | 389 | } |
| 390 | 390 | |