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

CustomizeディレクトリからSymfony Bundleをインストールできるよう修正 #6141

Open
wants to merge 8 commits into
base: 4.3
Choose a base branch
from

Conversation

kurozumi
Copy link
Contributor

@kurozumi kurozumi commented Apr 15, 2024

概要(Overview・Refs Issue)

CustomizeディレクトリからSymfony BundleをインストールできるようKernel.phpを修正しました。

方針(Policy)

実装に関する補足(Appendix)

テスト(Test)

以下のコードでCustomizeディレクトリのBundleが読み込まれるのを確認しました。

<?php

namespace Customize\Bundle;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

class CustomizeBundle extends Bundle
{
    public function build(ContainerBuilder $contaner): void
    {
        parent::build($contaner);

        var_dump('hello world.');
    }
}

app/Customize/Resource/config/bundles.php

<?php

return [
    \Customize\Bundle\CustomizeBundle::class => ['all' => true]
];

相談(Discussion)

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

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

レビュワー確認項目

  • 動作確認
  • コードレビュー
  • E2E/Unit テスト確認(テストの追加・変更が必要かどうか)
  • 互換性が保持されているか
  • セキュリティ上の問題がないか
    • 権限を超えた操作が可能にならないか
    • 不要なファイルアップロードがないか
    • 外部へ公開されるファイルや機能の追加ではないか
    • テンプレートでのエスケープ漏れがないか

Copy link

codecov bot commented Apr 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.80%. Comparing base (4db7ae7) to head (6350e49).

Additional details and impacted files
@@           Coverage Diff           @@
##              4.3    #6141   +/-   ##
=======================================
  Coverage   82.80%   82.80%           
=======================================
  Files         480      480           
  Lines       26431    26437    +6     
=======================================
+ Hits        21885    21891    +6     
  Misses       4546     4546           
Flag Coverage Δ
E2E 82.80% <100.00%> (+<0.01%) ⬆️
Unit 82.80% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ji-eunsoo
Copy link
Contributor

@kurozumi
ありがとうございます!
不要な修正が混ざっているので、直していただいても良いでしょうか?

@dotani1111
Copy link
Contributor

@kurozumi
ありがとうございます!
よろしければ、テストコードの追加をお願いしたいです。

@kurozumi
Copy link
Contributor Author

@dotani1111

テストを追加しました。

@dotani1111 dotani1111 added this to the 4.3.0 milestone May 22, 2024
@dotani1111
Copy link
Contributor

@kurozumi
ありがとうございます。
動作確認して問題なければ、マージしたいと思います。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants