From 32450117c22e1a9dddaaf6fbb9fe6466a06c69bb Mon Sep 17 00:00:00 2001 From: Benjamin Perche Date: Wed, 23 Jul 2014 08:38:28 +0200 Subject: [PATCH] =?UTF-8?q?Change=20getRewrittenUrlViewName=20signature=20?= =?UTF-8?q?to=20public,=20to=20allow=20export=20to=20do=20a=20single=20que?= =?UTF-8?q?ry.=20=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20core/lib/Theli?= =?UTF-8?q?a/Model/Brand.php=20=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?core/lib/Thelia/Model/Category.php=20=09modifi=C3=A9:=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20core/lib/Thelia/Model/Content.php=20=09modifi?= =?UTF-8?q?=C3=A9:=20=20=20=20=20=20=20=20=20core/lib/Thelia/Model/Folder.?= =?UTF-8?q?php=20=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20core/lib/Theli?= =?UTF-8?q?a/Model/Product.php=20=09modifi=C3=A9:=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20core/lib/Thelia/Model/Tools/UrlRewritingTrait.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/lib/Thelia/Model/Brand.php | 2 +- core/lib/Thelia/Model/Category.php | 2 +- core/lib/Thelia/Model/Content.php | 2 +- core/lib/Thelia/Model/Folder.php | 2 +- core/lib/Thelia/Model/Product.php | 2 +- core/lib/Thelia/Model/Tools/UrlRewritingTrait.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/lib/Thelia/Model/Brand.php b/core/lib/Thelia/Model/Brand.php index fad681627..76d1f991d 100644 --- a/core/lib/Thelia/Model/Brand.php +++ b/core/lib/Thelia/Model/Brand.php @@ -22,7 +22,7 @@ class Brand extends BaseBrand implements FileModelParentInterface /** * {@inheritDoc} */ - protected function getRewrittenUrlViewName() + public function getRewrittenUrlViewName() { return 'brand'; } diff --git a/core/lib/Thelia/Model/Category.php b/core/lib/Thelia/Model/Category.php index 2fcd28b8d..15b18f529 100644 --- a/core/lib/Thelia/Model/Category.php +++ b/core/lib/Thelia/Model/Category.php @@ -31,7 +31,7 @@ class Category extends BaseCategory implements FileModelParentInterface /** * {@inheritDoc} */ - protected function getRewrittenUrlViewName() + public function getRewrittenUrlViewName() { return 'category'; } diff --git a/core/lib/Thelia/Model/Content.php b/core/lib/Thelia/Model/Content.php index 24f8eec56..8cfadab74 100644 --- a/core/lib/Thelia/Model/Content.php +++ b/core/lib/Thelia/Model/Content.php @@ -27,7 +27,7 @@ class Content extends BaseContent implements FileModelParentInterface /** * {@inheritDoc} */ - protected function getRewrittenUrlViewName() + public function getRewrittenUrlViewName() { return 'content'; } diff --git a/core/lib/Thelia/Model/Folder.php b/core/lib/Thelia/Model/Folder.php index 4302b8619..5d2b1c350 100644 --- a/core/lib/Thelia/Model/Folder.php +++ b/core/lib/Thelia/Model/Folder.php @@ -20,7 +20,7 @@ class Folder extends BaseFolder implements FileModelParentInterface /** * {@inheritDoc} */ - protected function getRewrittenUrlViewName() + public function getRewrittenUrlViewName() { return 'folder'; } diff --git a/core/lib/Thelia/Model/Product.php b/core/lib/Thelia/Model/Product.php index be45997e2..3cf54da7b 100644 --- a/core/lib/Thelia/Model/Product.php +++ b/core/lib/Thelia/Model/Product.php @@ -25,7 +25,7 @@ class Product extends BaseProduct implements FileModelParentInterface /** * {@inheritDoc} */ - protected function getRewrittenUrlViewName() + public function getRewrittenUrlViewName() { return 'product'; } diff --git a/core/lib/Thelia/Model/Tools/UrlRewritingTrait.php b/core/lib/Thelia/Model/Tools/UrlRewritingTrait.php index 8e1328d02..672c6d143 100644 --- a/core/lib/Thelia/Model/Tools/UrlRewritingTrait.php +++ b/core/lib/Thelia/Model/Tools/UrlRewritingTrait.php @@ -29,7 +29,7 @@ trait UrlRewritingTrait /** * @returns string the view name of the rewritten object (e.g., 'category', 'product') */ - abstract protected function getRewrittenUrlViewName(); + abstract public function getRewrittenUrlViewName(); /** * Get the object URL for the given locale, rewritten if rewriting is enabled.