mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Reorganise imports and class detection for WidgetControllers
This commit is contained in:
parent
66531fd95a
commit
51edd8d620
@ -2,12 +2,12 @@
|
||||
|
||||
namespace SilverStripe\Blog\Widgets;
|
||||
|
||||
if (!class_exists('\\SilverStripe\\Widgets\\Model\\Widget')) {
|
||||
use SilverStripe\Widgets\Model\WidgetController;
|
||||
|
||||
if (!class_exists(WidgetController::class)) {
|
||||
return;
|
||||
}
|
||||
|
||||
use SilverStripe\Widgets\Model\WidgetController;
|
||||
|
||||
class BlogArchiveWidgetController extends WidgetController
|
||||
{
|
||||
|
||||
|
@ -2,12 +2,12 @@
|
||||
|
||||
namespace SilverStripe\Blog\Widgets;
|
||||
|
||||
if (!class_exists('\\SilverStripe\\Widgets\\Model\\Widget')) {
|
||||
use SilverStripe\Widgets\Model\WidgetController;
|
||||
|
||||
if (!class_exists(WidgetController::class)) {
|
||||
return;
|
||||
}
|
||||
|
||||
use SilverStripe\Widgets\Model\WidgetController;
|
||||
|
||||
class BlogCategoriesWidgetController extends WidgetController
|
||||
{
|
||||
|
||||
|
@ -2,12 +2,12 @@
|
||||
|
||||
namespace SilverStripe\Blog\Widgets;
|
||||
|
||||
if (!class_exists('\\SilverStripe\\Widgets\\Model\\Widget')) {
|
||||
use SilverStripe\Widgets\Model\WidgetController;
|
||||
|
||||
if (!class_exists(WidgetController::class)) {
|
||||
return;
|
||||
}
|
||||
|
||||
use SilverStripe\Widgets\Model\WidgetController;
|
||||
|
||||
class BlogRecentPostsWidgetController extends WidgetController
|
||||
{
|
||||
|
||||
|
@ -2,12 +2,12 @@
|
||||
|
||||
namespace SilverStripe\Blog\Widgets;
|
||||
|
||||
if (!class_exists('\\SilverStripe\\Widgets\\Model\\Widget')) {
|
||||
use SilverStripe\Widgets\Model\WidgetController;
|
||||
|
||||
if (!class_exists(WidgetController::class)) {
|
||||
return;
|
||||
}
|
||||
|
||||
use SilverStripe\Widgets\Model\WidgetController;
|
||||
|
||||
class BlogTagsCloudWidgetController extends WidgetController
|
||||
{
|
||||
}
|
||||
|
@ -2,12 +2,12 @@
|
||||
|
||||
namespace SilverStripe\Blog\Widgets;
|
||||
|
||||
if (!class_exists('\\SilverStripe\\Widgets\\Model\\Widget')) {
|
||||
use SilverStripe\Widgets\Model\WidgetController;
|
||||
|
||||
if (!class_exists(WidgetController::class)) {
|
||||
return;
|
||||
}
|
||||
|
||||
use SilverStripe\Widgets\Model\WidgetController;
|
||||
|
||||
class BlogTagsWidgetController extends WidgetController
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user