Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Merge pull request #194 from whiteoctober/pagerfanta-1.x
Browse files Browse the repository at this point in the history
Allow >= 1.1.0 & 2.x for Pagerfanta
  • Loading branch information
Sam Partington authored May 21, 2018
2 parents 0e60ca5 + c16f6a8 commit a489542
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Tests/View/DefaultTranslatedViewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protected function translatedViewClass()

protected function previousMessageOption()
{
return 'previous_message';
return 'prev_message';
}

protected function nextMessageOption()
Expand All @@ -47,4 +47,4 @@ protected function translatedViewName()
{
return 'default_translated';
}
}
}
2 changes: 1 addition & 1 deletion TestsProject/app/config_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ services:
class: Pagerfanta\View\OptionableView
arguments:
- '@pagerfanta.view.default'
- { proximity: 2, previous_message: Anterior, next_message: Siguiente }
- { proximity: 2, prev_message: Anterior, next_message: Siguiente }
public: false
tags: [{ name: pagerfanta.view, alias: my_view_1 }]
2 changes: 1 addition & 1 deletion View/DefaultTranslatedView.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class DefaultTranslatedView extends TranslatedView
{
protected function previousMessageOption()
{
return 'previous_message';
return 'prev_message';
}

protected function nextMessageOption()
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"require": {
"php": ">=5.3",
"pagerfanta/pagerfanta": "1.0.*",
"pagerfanta/pagerfanta": "^1.1.0|^2.0.0",
"symfony/framework-bundle": "~2.3|~3.0|~4.0",
"symfony/property-access": "~2.3|~3.0|~4.0",
"symfony/twig-bundle": "~2.3|~3.0|~4.0"
Expand Down

0 comments on commit a489542

Please sign in to comment.