Move ExtensionValidator class to Flarum\Extension namespace

This commit is contained in:
Franz Liedke 2017-06-24 14:27:54 +02:00
parent d6954a997a
commit e1ca9964b2
2 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@ class CoreServiceProvider extends AbstractServiceProvider
$events->subscribe('Flarum\Core\Listener\SelfDemotionGuard');
$events->subscribe('Flarum\Discussion\DiscussionMetadataUpdater');
$events->subscribe('Flarum\User\UserMetadataUpdater');
$events->subscribe('Flarum\Core\Listener\ExtensionValidator');
$events->subscribe('Flarum\Extension\DefaultLanguagePackGuard');
$events->subscribe('Flarum\User\EmailConfirmationMailer');
$events->subscribe('Flarum\Discussion\DiscussionRenamedNotifier');

View File

@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/
namespace Flarum\Core\Listener;
namespace Flarum\Extension;
use Flarum\Event\ExtensionWillBeDisabled;
use Flarum\Http\Exception\ForbiddenException;
use Illuminate\Contracts\Events\Dispatcher;
class ExtensionValidator
class DefaultLanguagePackGuard
{
/**
* @param Dispatcher $events