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

easycorp/easy-log-handler を必須ライブラリに変更 #4669

Merged
merged 1 commit into from Aug 24, 2020

Conversation

okazy
Copy link
Contributor

@okazy okazy commented Aug 24, 2020

概要(Overview・Refs Issue)

composer require easycorp/easy-log-handler を実施

背景

install 環境で easycorp/easy-log-handler を利用していたが、 composer.json では require-dev となっている状態となっていた。

services:
easycorp.easylog.handler:
class: EasyCorp\EasyLog\EasyLogHandler
public: false
arguments:
- '%kernel.logs_dir%/%kernel.environment%/site.log'

symfony/debug-pack を利用する上で easycorp/easy-log-handler が必須だったためインストール対象となり問題が起きていなかったが、 #4585 で Symfony のライブラリを更新したことにより必須ライブラリから外れてしまった。

ライブラリを composer install --no-dev でインストールした場合にwebインストーラでインストールしようとするとライブラリが読み込めずエラーとなっていた。

image

方針(Policy)

以下の2種類の対応が考えられるが、4.0.4以前の状態を正とし、前者の対応方針とした。

  • [採用] easycorp/easy-log-handler を必須ライブラリとする
  • installeasycorp/easy-log-handler を利用しない。

実装に関する補足(Appendix)

なし

テスト(Test)

以下のコマンドでライブラリを再インストールしてエラーが発生しなくなっていることを確認

composer install --no-scripts --no-dev --no-interaction --optimize-autoloader

相談(Discussion)

マイナーバージョン互換性保持のための制限事項チェックリスト

  • 既存機能の仕様変更
  • フックポイントの呼び出しタイミングの変更
  • フックポイントのパラメータの削除・データ型の変更
  • twigファイルに渡しているパラメータの削除・データ型の変更
  • Serviceクラスの公開関数の、引数の削除・データ型の変更
  • 入出力ファイル(CSVなど)のフォーマット変更

レビュワー確認項目

  • 動作確認
  • コードレビュー
  • E2E/Unit テスト確認(テストの追加・変更が必要かどうか)
  • 互換性が保持されているか
  • セキュリティ上の問題がないか

@okazy okazy added the dependencies Pull requests that update a dependency file label Aug 24, 2020
@okazy okazy added this to the 4.0.5 milestone Aug 24, 2020
@okazy okazy added the bug label Aug 24, 2020
@okazy okazy changed the title composer require easycorp/easy-log-handler easycorp/easy-log-handler を必須ライブラリに変更 Aug 24, 2020
@kiy0taka kiy0taka merged commit 925e1f6 into EC-CUBE:4.0 Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants