diff --git a/src/framework/Eccube/Controller/AbstractController.php b/src/framework/Eccube/Controller/AbstractController.php index 192e5f9327..42c976c023 100644 --- a/src/framework/Eccube/Controller/AbstractController.php +++ b/src/framework/Eccube/Controller/AbstractController.php @@ -21,8 +21,7 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\Form\FormFactoryInterface; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Session\Session; -use Symfony\Component\HttpFoundation\Session\SessionInterface; +use Eccube\HttpFoundation\Session\Session; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; use Symfony\Component\Routing\Exception\RouteNotFoundException; use Eccube\Routing\Generator\UrlGeneratorInterface; @@ -88,10 +87,10 @@ public function setTranslator(TranslatorInterface $translator) } /** - * @param SessionInterface $session + * @param Session $session * @required */ - public function setSession(SessionInterface $session) + public function setSession(Session $session) { $this->session = $session; } diff --git a/src/framework/Eccube/HttpFoundation/Session/Session.php b/src/framework/Eccube/HttpFoundation/Session/Session.php new file mode 100644 index 0000000000..083e601cfc --- /dev/null +++ b/src/framework/Eccube/HttpFoundation/Session/Session.php @@ -0,0 +1,21 @@ +session = $session; + } + + // todo + public function __call($name, $arguments) + { + return $this->session->$name(...$arguments); + } +}