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

Added PaginationProviderInterface binding in scope #1079

Merged
merged 3 commits into from
Feb 16, 2024

Conversation

msmakouz
Copy link
Member

@msmakouz msmakouz commented Feb 16, 2024

Q A
Bugfix?
Breaks BC?
New feature?

PaginationProviderInterface binding has been moved to http.request scope. Until version 4.0, binding in the root scope with the display of deprecation message still available.

@msmakouz msmakouz self-assigned this Feb 16, 2024
Copy link

codecov bot commented Feb 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a3465cc) 89.53% compared to head (3a2f629) 89.54%.
Report is 1 commits behind head on feature/scopes.

Additional details and impacted files
@@                Coverage Diff                @@
##             feature/scopes    #1079   +/-   ##
=================================================
  Coverage             89.53%   89.54%           
- Complexity             6346     6350    +4     
=================================================
  Files                   828      829    +1     
  Lines                 17911    17926   +15     
=================================================
+ Hits                  16037    16052   +15     
  Misses                 1874     1874           

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

use Spiral\Pagination\PaginationProviderInterface;
use Spiral\Pagination\Paginator;
use Spiral\Pagination\PaginatorInterface;

/**
* Paginators factory binded to active request scope in order to select page number.
*/
#[Scope(Spiral::HttpRequest)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

this attribute will be breaking change in the case when the user requests the implementation directly, not via interface

@msmakouz msmakouz merged commit d9281b7 into feature/scopes Feb 16, 2024
13 checks passed
@msmakouz msmakouz deleted the feature/scoped-pagination branch February 16, 2024 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants