Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Symfony5 対応 #4528

Closed
wants to merge 62 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
7b171d7
非推奨の警告を表示
nanasess Nov 28, 2019
ee5f603
softDeleteFilter は使用しなくなったため削除
nanasess Nov 28, 2019
70e5420
Fix deprecated Symfony Container
nanasess Nov 28, 2019
30fcc75
Symfony4.4 support
nanasess Nov 29, 2019
b783282
container 変数を static に変更
nanasess Nov 29, 2019
fc88f37
プレースホルダを使用しているメッセージ '' で囲む
nanasess Dec 2, 2019
059e1b7
Fix variables
nanasess Dec 2, 2019
e8af733
Set scope to public
nanasess Dec 2, 2019
97d58e0
Use Interface
nanasess Dec 3, 2019
2535553
Fix variables
nanasess Dec 3, 2019
dd79e8f
Add getExtendedTypes()
nanasess Dec 3, 2019
53f4079
Add FIXME comment
nanasess Dec 3, 2019
2f0e03c
Use static
nanasess Dec 3, 2019
b569ac1
Fixes #2874 Serializable を実装
nanasess Dec 5, 2019
a7d2fa6
form.type_extension は autoconfiguration の対象になったため削除
nanasess Dec 5, 2019
b35feba
Revert to FormExtension
nanasess Dec 5, 2019
0d8e49b
Fix obsolete class name
nanasess Dec 6, 2019
ea90347
Remove obsolete to Silex Application
nanasess Dec 6, 2019
39b23c9
ComposerApiService to public
nanasess Dec 6, 2019
52220ac
Fix functions to logger and translation
nanasess Dec 9, 2019
d22c409
AnnotationReader を Facade で設定するように修正
nanasess Dec 10, 2019
81459a8
Customer の Serializable 実装に伴う修正
nanasess Dec 10, 2019
f7ca09f
Add Form::isSubmitted()
nanasess Dec 10, 2019
642a17b
TODO エラーメッセージが翻訳されない
nanasess Dec 10, 2019
b593290
Apply composer update
nanasess Dec 11, 2019
5e8a1e5
Merge remote-tracking branch 'upstream/4.0' into improve/symfony4.4
nanasess Apr 30, 2020
36f3930
キャッシュの再生成できるところまで修正
nanasess Apr 30, 2020
b39d4e4
TOPページが表示できるよう修正
nanasess May 1, 2020
37dc985
依存関係解消のために削除していたパッケージを追加
nanasess May 1, 2020
6c34c1f
symfony/phpunit-bridge の依存関係を使用する
nanasess May 1, 2020
5a88eaa
PHPUnit8.5 に更新
nanasess May 1, 2020
828cf17
setUp/tearDown を Symfony WebTestCase に合わせる
nanasess May 1, 2020
91d694f
Merge remote-tracking branch 'upstream/4.0' into improve/symfony5
nanasess May 8, 2020
2a1c6da
IgnoreRoutingNoteFoundExtensionを動作するように修正
chihiro-adachi May 7, 2020
f07e4fd
Bump version to mikey179/vfsstream 2.0-dev
nanasess May 8, 2020
73f777b
Fix kernel should only be booted once
nanasess May 8, 2020
7ceca6a
Fix argument
nanasess May 8, 2020
787ab85
Fix EventDispatcherInterface
nanasess May 8, 2020
ea62da0
Fix ExceptionListener
nanasess May 8, 2020
9385d51
Fix order_state_machine
nanasess May 8, 2020
755a259
translatorを動作するように修正
chihiro-adachi May 8, 2020
211b4e5
商品一覧を動作するように修正
chihiro-adachi May 8, 2020
517b6ef
Merge pull request #37 from chihiro-adachi/improve/symfony5-product-list
nanasess May 8, 2020
02def6f
Fix kernel should only be booted once
nanasess May 8, 2020
c538819
Use dev-master of mobile-detect-bundle
nanasess May 8, 2020
04a55bb
Use Swiftmailer 6.3.x-dev
nanasess May 11, 2020
4096e95
APIプラグインはデフォルトで有効化する
nanasess Dec 3, 2020
8497eac
Merge remote-tracking branch 'upstream/4.1' into 4.1
nanasess Dec 10, 2020
7219a03
Doctrine ORM 2.8.x support
nanasess Dec 10, 2020
d4c080b
Doctrine/Persistence 2.0 Support
nanasess Dec 10, 2020
af23bd0
FIXME Doctrine/Migration のインターフェイスが変更されたためコメントアウト
nanasess Dec 10, 2020
6c29971
PHP7.3以上に変更
nanasess Dec 14, 2020
cd8ef93
Fix argument
nanasess Dec 14, 2020
8db06c2
Remove PHP7.2 or less
nanasess Dec 14, 2020
6b18c5b
Fix namespace
nanasess Dec 14, 2020
42527e7
Fix MappingDriverChain
nanasess Dec 14, 2020
b2af659
Merge pull request #4813 from nanasess/composer-update-20201221
nanasess Dec 22, 2020
f16ef00
Merge remote-tracking branch 'origin/improve/php8' into improve/symfony5
nanasess Dec 25, 2020
e74461c
Apply composer update "symfony/*"
nanasess Dec 25, 2020
dab0519
Merge remote-tracking branch 'upstream/4.1' into improve/symfony5
nanasess Dec 25, 2020
2b6613e
Fix debug toolber
nanasess Dec 25, 2020
20fd0bf
Fix minimum-stability from dev to stable
nanasess Dec 25, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/e2e-test.yml
Expand Up @@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-18.04 ]
php: [ 7.3 ]
php: [ 7.3, 8.0 ]
db: [ pgsql ]
group: [ admin01, admin02, admin03, front, installer ]
include:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/plugin-test.yml
Expand Up @@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-18.04 ]
php: [ 7.3 ]
php: [ 7.3, 8.0 ]
db: [ pgsql, mysql ]
method:
- test_install_enable_disable_remove_store
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-test.yml
Expand Up @@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-18.04 ]
php: [ 7.1, 7.2, 7.3, 7.4 ]
php: [ 7.3, 7.4, 8.0 ]
db: [ mysql, pgsql, sqlite3 ]
include:
- db: mysql
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Expand Up @@ -54,7 +54,3 @@ composer.phar
.php_cs
.php_cs.cache
###< friendsofphp/php-cs-fixer ###

###> symfony/web-server-bundle ###
.web-server-pid
###< symfony/web-server-bundle ###
17 changes: 2 additions & 15 deletions app/config/eccube/bundles.php
@@ -1,20 +1,8 @@
<?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.
*/

return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['all' => true],
Expand All @@ -23,10 +11,9 @@
Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle::class => ['all' => true],
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true, 'install' => true],
Symfony\Bundle\WebServerBundle\WebServerBundle::class => ['dev' => true, 'install' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true, 'install' => true],
DAMA\DoctrineTestBundle\DAMADoctrineTestBundle::class => ['test' => true],
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
SunCat\MobileDetectBundle\MobileDetectBundle::class => ['all' => true],
Knp\Bundle\PaginatorBundle\KnpPaginatorBundle::class => ['all' => true],
DAMA\DoctrineTestBundle\DAMADoctrineTestBundle::class => ['test' => true],
SunCat\MobileDetectBundle\MobileDetectBundle::class => ['all' => true],
];
2 changes: 1 addition & 1 deletion app/config/eccube/packages/dev/doctrine.yaml
Expand Up @@ -2,4 +2,4 @@
# https://symfony.com/doc/master/bundles/DoctrineBundle/configuration.html
doctrine:
orm:
result_cache_driver: array
result_cache_driver: ~
4 changes: 2 additions & 2 deletions app/config/eccube/packages/doctrine_migrations.yaml
@@ -1,4 +1,4 @@
doctrine_migrations:
dir_name: "%kernel.project_dir%/app/DoctrineMigrations"
namespace: DoctrineMigrations
organize_migrations: false
# namespace: DoctrineMigrations
# organize_migrations: false
10 changes: 5 additions & 5 deletions app/config/eccube/packages/eccube.yaml
Expand Up @@ -3,13 +3,13 @@ parameters:
env(ECCUBE_ADMIN_ROUTE): 'admin'
env(ECCUBE_USER_DATA_ROUTE): 'user_data'
env(ECCUBE_ADMIN_ALLOW_HOSTS): '[]'
env(ECCUBE_FORCE_SSL): false
env(ECCUBE_FORCE_SSL): null
env(ECCUBE_TEMPLATE_CODE): 'default'
env(ECCUBE_AUTH_MAGIC): '<change.me>'
env(ECCUBE_COOKIE_NAME): 'eccube'
env(ECCUBE_COOKIE_PATH): '/'
env(ECCUBE_COOKIE_LIFETIME): 0
env(ECCUBE_GC_MAXLIFETIME): 1440
env(ECCUBE_COOKIE_LIFETIME): '0'
env(ECCUBE_GC_MAXLIFETIME): '1440'
env(ECCUBE_PACKAGE_API_URL): 'https://package-api-41beta.ec-cube.net'
env(ECCUBE_OWNERS_STORE_URL): 'https://www.ec-cube.net'
env(ECCUBE_MAINTENANCE_FILE_PATH): '%kernel.project_dir%/.maintenance'
Expand All @@ -24,8 +24,8 @@ parameters:
eccube.theme: '%env(ECCUBE_TEMPLATE_CODE)%'
eccube_theme_code: '%eccube.theme%'
eccube_auth_magic: '%env(ECCUBE_AUTH_MAGIC)%'
eccube_auth_type: HMAC
eccube_password_hash_algos: SHA256
eccube_auth_type: 'HMAC'
eccube_password_hash_algos: 'SHA256'
eccube_theme_app_dir: '%kernel.project_dir%/app/template'
eccube_theme_src_dir: '%kernel.project_dir%/src/Eccube/Resource/template'
eccube_theme_user_data_dir: '%eccube_theme_app_dir%/user_data'
Expand Down
3 changes: 2 additions & 1 deletion app/config/eccube/packages/framework.yaml
Expand Up @@ -14,6 +14,7 @@ framework:
cookie_lifetime: '%env(ECCUBE_COOKIE_LIFETIME)%'
gc_maxlifetime: '%env(ECCUBE_GC_MAXLIFETIME)%'
cookie_httponly: true
cookie_secure: "auto"

# When using the HTTP Cache, ESI allows to render page fragments separately
# and with different cache configurations for each fragment
Expand Down Expand Up @@ -49,4 +50,4 @@ framework:
# See https://symfony.com/doc/current/reference/configuration/framework.html#ide
ide: ~
validation: { enable_annotations: true }
templating: { engines: ['twig'] }
# templating: { engines: ['twig'] }
12 changes: 12 additions & 0 deletions app/config/eccube/packages/mobile_detect.yaml
@@ -0,0 +1,12 @@
# Read the documentation: https://github.com/suncat2000/MobileDetectBundle/blob/v1.0.5/Resources/doc/index.md
mobile_detect:
# redirect:
# full:
# is_enabled: true
# host: http://site.com
# action: redirect
# mobile:
# is_enabled: true
# host: http://m.site.com
# action: redirect
# detect_tablet_as_mobile: true
6 changes: 3 additions & 3 deletions app/config/eccube/packages/order_state_machine.php
Expand Up @@ -19,13 +19,13 @@
'order' => [
'type' => 'state_machine',
'marking_store' => [
'type' => 'single_state',
'arguments' => 'status',
'type' => 'method',
'property' => 'status',
],
'supports' => [
OrderStateMachineContext::class,
],
'initial_place' => (string) Status::NEW,
'initial_marking' => (string) Status::NEW,
'places' => [
(string) Status::NEW,
(string) Status::CANCEL,
Expand Down
@@ -0,0 +1,4 @@
dama_doctrine_test:
enable_static_connection: true
enable_static_meta_data_cache: true
enable_static_query_cache: true
2 changes: 1 addition & 1 deletion app/config/eccube/packages/test/doctrine.yaml
Expand Up @@ -2,4 +2,4 @@
# https://symfony.com/doc/master/bundles/DoctrineBundle/configuration.html
doctrine:
orm:
result_cache_driver: array
result_cache_driver: ~
4 changes: 2 additions & 2 deletions app/config/eccube/routes.yaml
@@ -1,8 +1,8 @@
controllers:
resource: ../../src/Eccube/Controller/
resource: ../../../src/Eccube/Controller/
type: annotation
customize_controllers:
resource: ../../app/Customize/Controller/
resource: ../../../app/Customize/Controller/
type: annotation

# prefix: /{_locale}
Expand Down
4 changes: 2 additions & 2 deletions app/config/eccube/routes/dev/twig.yaml
@@ -1,3 +1,3 @@
_errors:
resource: '@TwigBundle/Resources/config/routing/errors.xml'
prefix: /_error
resource: '@FrameworkBundle/Resources/config/routing/errors.xml'
prefix: /_error
4 changes: 2 additions & 2 deletions app/config/eccube/routes/install/twig.yaml
@@ -1,3 +1,3 @@
_errors:
resource: '@TwigBundle/Resources/config/routing/errors.xml'
prefix: /_error
resource: '@FrameworkBundle/Resources/config/routing/errors.xml'
prefix: /_error
2 changes: 2 additions & 0 deletions app/config/eccube/services.yaml
Expand Up @@ -179,7 +179,9 @@ services:

Symfony\Component\HttpFoundation\ParameterBag:

# APP_ENV=prod時にtwigテンプレート内のroutingでシステムエラーになるのを抑止.
Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension:
decorates: 'twig.extension.routing'
# Symfony\Bridge\Twig\Extension\RoutingExtensionの後に登録するため,
# autoconfigureはfalseにし, CompilerPassで追加する.
autoconfigure: false
Expand Down
2 changes: 1 addition & 1 deletion bin/phpunit
Expand Up @@ -9,7 +9,7 @@ if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {
putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');
}
if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {
putenv('SYMFONY_PHPUNIT_VERSION=6.5');
putenv('SYMFONY_PHPUNIT_VERSION=8.5');
}
if (false === getenv('SYMFONY_PHPUNIT_DIR')) {
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
Expand Down
120 changes: 57 additions & 63 deletions composer.json
Expand Up @@ -4,43 +4,41 @@
"type": "project",
"homepage": "https://www.ec-cube.net/",
"license": [
"GPL-2.0-only",
"proprietary"
"GPL-2.0-only",
"proprietary"
],
"support": {
"issues": "https://github.com/EC-CUBE/ec-cube/issues"
},
"minimum-stability": "stable",
"require": {
"php": "^7.1.3",
"php": "^7.3",
"ext-intl": "*",
"ext-mbstring": "*",
"composer/ca-bundle": "^1.1",
"composer/composer": "^2.0",
"doctrine/annotations": "^1.6",
"doctrine/cache": "^1.7",
"doctrine/collections": "^1.5",
"doctrine/common": "^2.9",
"doctrine/common": "^3.0",
"doctrine/data-fixtures": "^1.3",
"doctrine/dbal": "^2.9",
"doctrine/doctrine-bundle": "^1.9",
"doctrine/doctrine-cache-bundle": "^1.3",
"doctrine/dbal": "^2.12",
"doctrine/doctrine-bundle": "^2.2",
"doctrine/doctrine-fixtures-bundle": "^3.0",
"doctrine/doctrine-migrations-bundle": "^1.3",
"doctrine/doctrine-migrations-bundle": "^2.2",
"doctrine/inflector": "^1.3",
"doctrine/instantiator": "^1.1",
"doctrine/lexer": "^1.0",
"doctrine/migrations": "^1.8",
"doctrine/orm": "^2.6",
"doctrine/migrations": "^2.2",
"doctrine/orm": "^2.8",
"easycorp/easy-log-handler": "^1.0",
"ec-cube/plugin-installer": "^2.0@dev",
"egulias/email-validator": "^2.1",
"friendsofphp/php-cs-fixer": "^2.16",
"guzzlehttp/guzzle": "^6.3",
"knplabs/knp-paginator-bundle": "^2.7",
"knplabs/knp-paginator-bundle": "^5.2",
"mobiledetect/mobiledetectlib": "^2.8",
"monolog/monolog": "^1.23",
"nesbot/carbon": "^1.22",
"pimple/pimple": "^1.1",
"psr/cache": "^1.0",
"psr/container": "^1.0",
Expand All @@ -51,55 +49,51 @@
"setasign/fpdi": "^2.2",
"setasign/fpdi-tcpdf": "^2.2",
"skorp/detect-incompatible-samesite-useragents": "^1.0",
"suncat/mobile-detect-bundle": "^1.1",
"suncat/mobile-detect-bundle": "dev-master",
"swiftmailer/swiftmailer": "^6.1",
"symfony/asset": "^4.4",
"symfony/cache": "^4.4",
"symfony/config": "^4.4",
"symfony/console": "^4.4",
"symfony/css-selector": "^4.4",
"symfony/debug": "^4.4",
"symfony/debug-bundle": "^4.4",
"symfony/debug-pack": "^1.0",
"symfony/dependency-injection": "^4.4",
"symfony/doctrine-bridge": "^4.4",
"symfony/dom-crawler": "^4.4",
"symfony/dotenv": "^4.4",
"symfony/event-dispatcher": "^4.4",
"symfony/expression-language": "^4.4",
"symfony/filesystem": "^4.4",
"symfony/finder": "^4.4",
"symfony/asset": "^5.0",
"symfony/cache": "^5.0",
"symfony/config": "^5.0",
"symfony/console": "^5.0",
"symfony/css-selector": "^5.0",
"symfony/debug-bundle": "^5.0",
"symfony/dependency-injection": "^5.0",
"symfony/doctrine-bridge": "^5.0",
"symfony/dom-crawler": "^5.0",
"symfony/dotenv": "^5.0",
"symfony/event-dispatcher": "^5.0",
"symfony/expression-language": "^5.0",
"symfony/filesystem": "^5.0",
"symfony/finder": "^5.0",
"symfony/flex": "^1.0",
"symfony/form": "^4.4",
"symfony/framework-bundle": "^4.4",
"symfony/http-foundation": "^4.4",
"symfony/http-kernel": "^4.4",
"symfony/inflector": "^4.4",
"symfony/intl": "^4.4",
"symfony/form": "^5.0",
"symfony/framework-bundle": "^5.0",
"symfony/http-foundation": "^5.0",
"symfony/http-kernel": "^5.0",
"symfony/inflector": "^5.0",
"symfony/intl": "^5.0",
"symfony/maker-bundle": "^1.0",
"symfony/monolog-bridge": "^4.4",
"symfony/monolog-bridge": "^5.0",
"symfony/monolog-bundle": "^3.1",
"symfony/options-resolver": "^4.4",
"symfony/options-resolver": "^5.0",
"symfony/orm-pack": "^1.0",
"symfony/process": "^4.4",
"symfony/property-access": "^4.4",
"symfony/proxy-manager-bridge": "^4.4",
"symfony/routing": "^4.4",
"symfony/security": "^4.4",
"symfony/security-bundle": "^4.4",
"symfony/serializer": "^4.4",
"symfony/stopwatch": "^4.4",
"symfony/process": "^5.0",
"symfony/property-access": "^5.0",
"symfony/proxy-manager-bridge": "^5.0",
"symfony/routing": "^5.0",
"symfony/security-bundle": "^5.0",
"symfony/serializer": "^5.0",
"symfony/stopwatch": "^5.0",
"symfony/swiftmailer-bundle": "^3.1",
"symfony/templating": "^4.4",
"symfony/translation": "^4.4",
"symfony/twig-bridge": "^4.4",
"symfony/twig-bundle": "^4.4",
"symfony/validator": "^4.4",
"symfony/var-dumper": "^4.4",
"symfony/web-profiler-bundle": "^4.4",
"symfony/web-server-bundle": "^4.4",
"symfony/workflow": "^4.4",
"symfony/yaml": "^4.4",
"symfony/templating": "^5.0",
"symfony/translation": "^5.0",
"symfony/twig-bridge": "^5.0",
"symfony/twig-bundle": "^5.0",
"symfony/validator": "^5.0",
"symfony/var-dumper": "^5.0",
"symfony/web-profiler-bundle": "^5.0",
"symfony/workflow": "^5.0",
"symfony/yaml": "^5.0",
"tecnickcom/tcpdf": "^6.2",
"twig/extensions": "^1.5",
"twig/twig": "^2.4",
Expand All @@ -108,14 +102,14 @@
"require-dev": {
"bheller/images-generator": "^1.0",
"captbaritone/mailcatcher-codeception-module": "^1.2",
"codeception/codeception": "~2.4.5",
"dama/doctrine-test-bundle": "^5.0",
"codeception/codeception": "^4.1",
"dama/doctrine-test-bundle": "dev-master",
"fzaninotto/faker": "^1.7",
"mikey179/vfsstream": "^1.6",
"mikey179/vfsstream": "2.0.x-dev",
"php-coveralls/php-coveralls": "^2.1",
"phpunit/phpunit": "^6.5",
"symfony/browser-kit": "^4.4",
"symfony/phpunit-bridge": "^4.4"
"phpunit/phpunit": "^8.5",
"symfony/browser-kit": "^5.0",
"symfony/phpunit-bridge": "^5.0"
},
"autoload": {
"files": [
Expand Down Expand Up @@ -175,7 +169,7 @@
"extra": {
"symfony": {
"id": "01C0Q71D54BCVSB8ZWR3VECDRD",
"allow-contrib": false
"allow-contrib": true
},
"symfony-web-dir": ".",
"bin-dir": "bin",
Expand All @@ -185,7 +179,7 @@
},
"config": {
"platform": {
"php": "7.1.3"
"php": "7.3.0"
},
"preferred-install": {
"*": "dist"
Expand Down