-
Notifications
You must be signed in to change notification settings - Fork 9
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
Remove unnecessary singleton scopes and update bindings #157
Conversation
The Scope::SINGLETON binding was removed from the pool configuration to allow for more flexible and dynamic behavior. This change ensures the adapter binding uses default scope settings, aligning with the intended design.
Updated the binding of ResourceStorageInterface to use singleton scope. This ensures a single instance is reused across the application, improving memory efficiency and consistency.
Upgraded multiple dependencies in `composer.lock` to include the latest versions. Updated `CommandsProvider` to replace `QueryRepositoryInterface` and `ResourceInterface` with specific command dependencies for better clarity and modular design.
The binding for UriTagInterface no longer uses singleton scope. This simplifies the dependency lifecycle and allows for more flexible instantiation when needed.
Removed singleton scope from several bindings to allow better flexibility and lifecycle control. Added a new binding for `RefreshSameCommand` to expand functionality.
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 📝 WalkthroughWalkthroughThe pull request introduces significant changes to the dependency injection and command management in the application. The modifications primarily affect three modules: Changes
Possibly related PRs
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 1.x #157 +/- ##
===========================================
Coverage 100.00% 100.00%
- Complexity 230 231 +1
===========================================
Files 51 51
Lines 737 738 +1
===========================================
+ Hits 737 738 +1 ☔ View full report in Codecov by Sentry. |
Add support for PHP 8.4 in the matrix strategy to ensure compatibility with newer PHP versions. Upgrade the Codecov action to v3 for improved functionality and maintenance. These changes enhance the CI pipeline's robustness and coverage.
Description:
RefreshSameCommand
to enhance functionality.