-
Notifications
You must be signed in to change notification settings - Fork 31
Refactor as a single-class bundle #33
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
base: main
Are you sure you want to change the base?
Conversation
effd607
to
a128e36
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the OpenAI Symfony bundle from a traditional bundle structure to a single-class bundle using Symfony's AbstractBundle
. It removes support for older Symfony versions (5.4, 6.3) and adds support for Symfony 8.0, while introducing additional configuration options for project and base_uri.
Key changes:
- Consolidates bundle functionality into a single
OpenAIBundle
class extendingAbstractBundle
- Adds
project
andbase_uri
configuration options - Updates Symfony version constraints to support only 6.4, 7.3+, and 8.0
Reviewed Changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
src/OpenAIBundle.php | Refactored to extend AbstractBundle with embedded configuration and service registration |
tests/OpenAIBundleTest.php | New integration test using Symfony kernel to test the complete bundle |
src/DependencyInjection/OpenAIExtension.php | Removed - functionality moved to OpenAIBundle |
src/DependencyInjection/Configuration.php | Removed - configuration moved to OpenAIBundle |
src/Resources/config/services.php | Removed - service configuration moved to OpenAIBundle |
tests/DependencyInjection/OpenAIExtensionTest.php | Removed - replaced by integration test |
composer.json | Updated Symfony version constraints and dev dependencies |
.github/workflows/tests.yml | Updated CI matrix to test only supported Symfony versions |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
What:
Description:
project
andbase_uri
.Related: