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

[Repository] Removed unused createFilterPaginator methods #6174

Merged

Conversation

Zales0123
Copy link
Member

Q A
Bug fix? yes
New feature? no
BC breaks? no
Related tickets
License MIT

@michalmarcinkowski michalmarcinkowski added Deprecation BC Break PRs introducing BC breaks (do not even try to merge). labels Sep 21, 2016
* @param array $sorting
*
* @return PagerfantaInterface
*/
public function createCheckoutsPaginator(array $criteria = null, array $sorting = null);
Copy link
Contributor

Choose a reason for hiding this comment

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

How about other ...Paginator methods? Are they used anywhere? If not we should remove them also.


/**
* {@inheritdoc}
*/
public function findForDetailsPage($id)
Copy link
Contributor

Choose a reason for hiding this comment

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

Such methods are also remains from WebBundle, please look through the codebase to catch as much unused repository methods as possible ;)

Copy link
Contributor

@michalmarcinkowski michalmarcinkowski Sep 22, 2016

Choose a reason for hiding this comment

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

This method also :)

@@ -39,15 +39,6 @@ public function createByTaxonPaginator(TaxonInterface $taxon, array $criteria =
* @return PagerfantaInterface
*/
public function createByTaxonAndChannelPaginator(TaxonInterface $taxon, ChannelInterface $channel);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be removed also :)

@Zales0123 Zales0123 force-pushed the remove-unused-repository-methods branch 6 times, most recently from 3c7e69c to cb16792 Compare September 23, 2016 08:27
@michalmarcinkowski
Copy link
Contributor

@Zales0123 rebase please :)

@Zales0123 Zales0123 force-pushed the remove-unused-repository-methods branch 2 times, most recently from 47321b5 to 3b271c6 Compare September 23, 2016 14:03
@Zales0123 Zales0123 force-pushed the remove-unused-repository-methods branch from 3b271c6 to 8da517b Compare September 23, 2016 14:09
@michalmarcinkowski michalmarcinkowski merged commit c213341 into Sylius:master Sep 23, 2016
@michalmarcinkowski
Copy link
Contributor

👍

@emodric
Copy link
Contributor

emodric commented Sep 26, 2016

Hi!

What methods should be used instead of ProductRepository::createByTaxonPaginator and ProductRepository::createFilterPaginator ?

@Zales0123 Zales0123 deleted the remove-unused-repository-methods branch October 6, 2016 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BC Break PRs introducing BC breaks (do not even try to merge).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants