0
0

EC-cubeプラグインを4.3にマイグレーションしました

Last updated at Posted at 2024-05-29

4.2と4.3の互換性は担保されているそうです。

具体的に修正したところ

ルーティングの記述

+use Symfony\Component\Routing\Annotation\Route

/**
*@Route("/hello" name= "hello" methods={"GET","POST"})
*/
public function index() {

インポートの方法とルーティングの記述を修正

ContainerInterfaceのインポートを変更

use Psr\Container\ContainerInterface;

Eccubecondigのインタンス化の削除と修正

-$condig = new EccubeConfig($container)
+$config = $container->get(EccubeConfig::class)->get('eccube_theme_admin_dir')

helloCondigTypeの変更

+use Symfony\Component\DependencyInjection\ParameterBag\ContainerBagInterface;

-public function index(ContainerInterface $container){
+public function index(ContainerBagInterface $container){

Found unconstructed IntlDateFormatterエラーが、出たのでフォームをdatetimeでbuildしているファイルに下記を記述

setlocale(LC_ALL, 'ja_JP.UTF-8');
\Locale::setDefault('ja');

参考サイト
https://doc4.ec-cube.net/update-42-43

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0