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

[1.0.0] Clean-up dependency management with a simplistic container. #73

Merged
merged 14 commits into from
Aug 5, 2023

Conversation

ChadSikorra
Copy link
Contributor

@ChadSikorra ChadSikorra commented Aug 4, 2023

Lots of the way dependencies and interfaces are designed in this library is influenced from the lack of a container / dependency graph management. This is an attempt to fix up the way dependencies are built / instantiated in the library to provide cleaner interfaces / constructors / dependencies in various spots. This likely wont be a perfect solution and may require clean-up elsewhere to be fully implemented.

#50

@codecov
Copy link

codecov bot commented Aug 4, 2023

Codecov Report

Merging #73 (0b5cdc8) into 1.0 (dd1ccdb) will increase coverage by 0.02%.
The diff coverage is 91.00%.

@@             Coverage Diff              @@
##                1.0      #73      +/-   ##
============================================
+ Coverage     87.00%   87.02%   +0.02%     
- Complexity     2109     2129      +20     
============================================
  Files           152      154       +2     
  Lines          6485     6552      +67     
============================================
+ Hits           5642     5702      +60     
- Misses          843      850       +7     
Files Changed Coverage Δ
...otocol/ClientProtocolHandler/ClientSearchTrait.php 100.00% <ø> (ø)
src/FreeDSx/Ldap/ClientOptions.php 80.18% <57.14%> (-1.63%) ⬇️
src/FreeDSx/Ldap/Container.php 75.47% <75.47%> (ø)
...otocol/ClientProtocolHandler/ClientSyncHandler.php 80.70% <77.77%> (+0.34%) ⬆️
...dap/Exception/UnsolicitedNotificationException.php 100.00% <100.00%> (ø)
src/FreeDSx/Ldap/LdapClient.php 97.45% <100.00%> (+1.29%) ⬆️
...rc/FreeDSx/Ldap/Protocol/ClientProtocolHandler.php 97.61% <100.00%> (+7.14%) ⬆️
...tocol/ClientProtocolHandler/ClientBasicHandler.php 100.00% <100.00%> (ø)
...ProtocolHandler/ClientExtendedOperationHandler.php 88.23% <100.00%> (+0.73%) ⬆️
...ol/ClientProtocolHandler/ClientReferralHandler.php 74.50% <100.00%> (+0.25%) ⬆️
... and 8 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

…s are constructed. I do not want to pull in a third party PSR container implementation for this. But I do want to fix the dependency graph in various spots (like the protocol handlers).
…equest. Other dependencies now come from the container as needed. Remove the ClientProtocolContext and its usage.
…Options. Will need to add this to the upgrade doc, as the method for global controls on the client no longer exists with this change.
@ChadSikorra ChadSikorra marked this pull request as ready for review August 5, 2023 20:48
@ChadSikorra ChadSikorra merged commit 7744cf4 into FreeDSx:1.0 Aug 5, 2023
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.

1 participant