Skip to content

Commit

Permalink
KernelEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
kiy0taka committed Jun 29, 2023
1 parent 3388a5c commit dbb8fae
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
use Eccube\Util\StringUtil;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\HttpKernel\KernelEvents;
use Eccube\KernelEvents;

class TemplateController extends AbstractController
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
use Eccube\Service\SystemService;
use Eccube\Util\CacheUtil;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\HttpKernel\KernelEvents;
use Eccube\KernelEvents;

class InstallPluginController extends InstallController
{
Expand Down
2 changes: 1 addition & 1 deletion src/application/Eccube/Service/SystemService.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpKernel\DataCollector\MemoryDataCollector;
use Symfony\Component\HttpKernel\Event\TerminateEvent;
use Symfony\Component\HttpKernel\KernelEvents;
use Eccube\KernelEvents;
use function explode;
use function file_exists;
use function file_get_contents;
Expand Down
27 changes: 27 additions & 0 deletions src/framework/Eccube/KernelEvents.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/*
* This file is part of EC-CUBE
*
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
*
* http://www.ec-cube.co.jp/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Eccube;

use Symfony\Component\HttpKernel\KernelEvents as SymfonyKernelEvents;

class KernelEvents
{
public const REQUEST = SymfonyKernelEvents::REQUEST;
public const EXCEPTION = SymfonyKernelEvents::EXCEPTION;
public const CONTROLLER = SymfonyKernelEvents::CONTROLLER;
public const CONTROLLER_ARGUMENTS = SymfonyKernelEvents::CONTROLLER_ARGUMENTS;
public const VIEW = SymfonyKernelEvents::VIEW;
public const RESPONSE = SymfonyKernelEvents::RESPONSE;
public const FINISH_REQUEST = SymfonyKernelEvents::FINISH_REQUEST;
public const TERMINATE = SymfonyKernelEvents::TERMINATE;
}

0 comments on commit dbb8fae

Please sign in to comment.