From dd6569a773d3d2a90a2de505892961b92c4f97aa Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 15 Jun 2018 19:17:43 +0930 Subject: [PATCH] Add Interface suffix --- framework/core/src/Extend/Assets.php | 2 +- framework/core/src/Extend/Compat.php | 2 +- .../core/src/Extend/{Extender.php => ExtenderInterface.php} | 2 +- framework/core/src/Extend/FormatterConfiguration.php | 2 +- framework/core/src/Extend/LanguagePack.php | 2 +- framework/core/src/Extend/Locales.php | 2 +- framework/core/src/Extend/Routes.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) rename framework/core/src/Extend/{Extender.php => ExtenderInterface.php} (93%) diff --git a/framework/core/src/Extend/Assets.php b/framework/core/src/Extend/Assets.php index 6236f4a51..ad4fbd574 100644 --- a/framework/core/src/Extend/Assets.php +++ b/framework/core/src/Extend/Assets.php @@ -16,7 +16,7 @@ use Flarum\Frontend\Event\Rendering; use Illuminate\Contracts\Container\Container; use Illuminate\Events\Dispatcher; -class Assets implements Extender +class Assets implements ExtenderInterface { protected $appName; diff --git a/framework/core/src/Extend/Compat.php b/framework/core/src/Extend/Compat.php index 662f37536..a50d89191 100644 --- a/framework/core/src/Extend/Compat.php +++ b/framework/core/src/Extend/Compat.php @@ -23,7 +23,7 @@ use Illuminate\Contracts\Container\Container; * * @deprecated */ -class Compat implements Extender +class Compat implements ExtenderInterface { protected $callback; diff --git a/framework/core/src/Extend/Extender.php b/framework/core/src/Extend/ExtenderInterface.php similarity index 93% rename from framework/core/src/Extend/Extender.php rename to framework/core/src/Extend/ExtenderInterface.php index 138b4bbda..6f9bfc7c9 100644 --- a/framework/core/src/Extend/Extender.php +++ b/framework/core/src/Extend/ExtenderInterface.php @@ -14,7 +14,7 @@ namespace Flarum\Extend; use Flarum\Extension\Extension; use Illuminate\Contracts\Container\Container; -interface Extender +interface ExtenderInterface { public function __invoke(Container $container, Extension $extension = null); } diff --git a/framework/core/src/Extend/FormatterConfiguration.php b/framework/core/src/Extend/FormatterConfiguration.php index b82adf0b1..61a11d1a4 100644 --- a/framework/core/src/Extend/FormatterConfiguration.php +++ b/framework/core/src/Extend/FormatterConfiguration.php @@ -16,7 +16,7 @@ use Flarum\Formatter\Event\Configuring; use Illuminate\Contracts\Container\Container; use Illuminate\Events\Dispatcher; -class FormatterConfiguration implements Extender +class FormatterConfiguration implements ExtenderInterface { protected $callback; diff --git a/framework/core/src/Extend/LanguagePack.php b/framework/core/src/Extend/LanguagePack.php index 7d1ed4931..c8a7f0c09 100644 --- a/framework/core/src/Extend/LanguagePack.php +++ b/framework/core/src/Extend/LanguagePack.php @@ -18,7 +18,7 @@ use Illuminate\Contracts\Container\Container; use InvalidArgumentException; use RuntimeException; -class LanguagePack implements Extender +class LanguagePack implements ExtenderInterface { public function __invoke(Container $container, Extension $extension = null) { diff --git a/framework/core/src/Extend/Locales.php b/framework/core/src/Extend/Locales.php index 94409130c..8b2b83e97 100644 --- a/framework/core/src/Extend/Locales.php +++ b/framework/core/src/Extend/Locales.php @@ -16,7 +16,7 @@ use Flarum\Extension\Extension; use Flarum\Locale\LocaleManager; use Illuminate\Contracts\Container\Container; -class Locales implements Extender +class Locales implements ExtenderInterface { protected $directory; diff --git a/framework/core/src/Extend/Routes.php b/framework/core/src/Extend/Routes.php index 0a99895c6..c84cde797 100644 --- a/framework/core/src/Extend/Routes.php +++ b/framework/core/src/Extend/Routes.php @@ -15,7 +15,7 @@ use Flarum\Extension\Extension; use Flarum\Http\RouteHandlerFactory; use Illuminate\Contracts\Container\Container; -class Routes implements Extender +class Routes implements ExtenderInterface { protected $appName;