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

Add Legacy PSR Container Support (#103) #105

Merged
merged 1 commit into from
Aug 8, 2022
Merged

Add Legacy PSR Container Support (#103) #105

merged 1 commit into from
Aug 8, 2022

Conversation

thefrosty
Copy link
Owner

  • Set the Platform to 7.4 and allow psr/container ^1 or ^2.

  • Update the docblock.

  • Allow nullable property.

  • Set the container based on which version of the ContainerInterface is present.

  • Add Container classes for support of psr/container 1.0.x, and 1.1.x.

  • Unit test code cleanup.

  • Change AbstractContainer constructor to Interface.

  • Resolve incorrect Unit test.

* Set the Platform to 7.4 and allow `psr/container` ^1 or ^2.

* Update the docblock.

* Allow nullable property.

* Set the container based on which version of the ContainerInterface is present.

* Add Container classes for support of psr/container 1.0.x, and 1.1.x.

* Unit test code cleanup.

* Change AbstractContainer constructor to Interface.

* Resolve incorrect Unit test.
@codecov
Copy link

codecov bot commented Aug 8, 2022

Codecov Report

Merging #105 (93cce43) into master (2bd6d99) will increase coverage by 0.90%.
The diff coverage is 9.67%.

@@             Coverage Diff             @@
##             master    #105      +/-   ##
===========================================
+ Coverage      3.90%   4.80%   +0.90%     
- Complexity      333     345      +12     
===========================================
  Files            33      35       +2     
  Lines           794     811      +17     
===========================================
+ Hits             31      39       +8     
- Misses          763     772       +9     
Impacted Files Coverage Δ
src/Plugin/Container.php 0.00% <ø> (ø)
src/Plugin/Container100.php 0.00% <0.00%> (ø)
src/Plugin/Container110.php 0.00% <0.00%> (ø)
src/Plugin/PluginFactory.php 0.00% <0.00%> (ø)
src/Plugin/ContainerAwareTrait.php 20.00% <20.00%> (+20.00%) ⬆️
src/Plugin/AbstractContainerProvider.php 100.00% <100.00%> (+33.33%) ⬆️
src/Plugin/PluginAwareTrait.php 100.00% <0.00%> (+100.00%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@thefrosty thefrosty merged commit 07b14ed into master Aug 8, 2022
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