From b612d2126403306c3416c062570b3879abeb75a2 Mon Sep 17 00:00:00 2001 From: Wenming Tang Date: Wed, 27 Dec 2017 13:04:48 +0800 Subject: [PATCH 1/4] Create TwitterBootstrap4TranslatedView file --- View/TwitterBootstrap4TranslatedView.php | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 View/TwitterBootstrap4TranslatedView.php diff --git a/View/TwitterBootstrap4TranslatedView.php b/View/TwitterBootstrap4TranslatedView.php new file mode 100644 index 0000000..15edce0 --- /dev/null +++ b/View/TwitterBootstrap4TranslatedView.php @@ -0,0 +1,30 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Wenming Tang + */ + +namespace WhiteOctober\PagerfantaBundle\View; + +/** + * TwitterBootstrap3TranslatedView + * + * This view renders the twitter bootstrap3 view with the text translated. + */ +class TwitterBootstrap4TranslatedView extends TwitterBootstrapTranslatedView +{ + /** + * {@inheritdoc} + */ + public function getName() + { + return 'twitter_bootstrap4_translated'; + } +} From 222ee8397d56e97b50ada7b2626ef263e9b717c2 Mon Sep 17 00:00:00 2001 From: Wenming Tang Date: Wed, 27 Dec 2017 13:06:52 +0800 Subject: [PATCH 2/4] Add twitter_bootstrap4_translated service --- Resources/config/pagerfanta.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Resources/config/pagerfanta.xml b/Resources/config/pagerfanta.xml index b0ca7bb..f1749de 100644 --- a/Resources/config/pagerfanta.xml +++ b/Resources/config/pagerfanta.xml @@ -45,6 +45,13 @@ + + + + + + + @@ -52,7 +59,6 @@ - From fabe48d7dc2c722554090ae8ae0ed44ace5bbd16 Mon Sep 17 00:00:00 2001 From: Wenming Tang Date: Wed, 27 Dec 2017 22:44:48 +0800 Subject: [PATCH 3/4] Fix annotation --- View/TwitterBootstrap4TranslatedView.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/View/TwitterBootstrap4TranslatedView.php b/View/TwitterBootstrap4TranslatedView.php index 15edce0..dec6b29 100644 --- a/View/TwitterBootstrap4TranslatedView.php +++ b/View/TwitterBootstrap4TranslatedView.php @@ -14,9 +14,9 @@ namespace WhiteOctober\PagerfantaBundle\View; /** - * TwitterBootstrap3TranslatedView + * TwitterBootstrap4TranslatedView * - * This view renders the twitter bootstrap3 view with the text translated. + * This view renders the twitter bootstrap4 view with the text translated. */ class TwitterBootstrap4TranslatedView extends TwitterBootstrapTranslatedView { From 586a3331b47658b3322fd2aaa72d884038f775cc Mon Sep 17 00:00:00 2001 From: Wenming Tang Date: Wed, 3 Jan 2018 09:28:23 +0800 Subject: [PATCH 4/4] Create TwitterBootstrap4 Translated View --- .../TwitterBootstrap4TranslatedViewTest.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Tests/View/TwitterBootstrap4TranslatedViewTest.php diff --git a/Tests/View/TwitterBootstrap4TranslatedViewTest.php b/Tests/View/TwitterBootstrap4TranslatedViewTest.php new file mode 100644 index 0000000..9a7c834 --- /dev/null +++ b/Tests/View/TwitterBootstrap4TranslatedViewTest.php @@ -0,0 +1,28 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Wenming Tang + */ +namespace WhiteOctober\PagerfantaBundle\Tests\View; + +class TwitterBootstrap4TranslatedView extends TwitterBootstrapTranslatedViewTest +{ + protected function viewClass() + { + return 'Pagerfanta\View\TwitterBootstrap4View'; + } + protected function translatedViewClass() + { + return 'WhiteOctober\PagerfantaBundle\View\TwitterBootstrap4TranslatedView'; + } + protected function translatedViewName() + { + return 'twitter_bootstrap4_translated'; + } +}