mirror of
https://github.com/flarum/core.git
synced 2025-08-01 22:20:21 +02:00
Remove useless code
This commit is contained in:
@@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
namespace Flarum\Core\Listener;
|
namespace Flarum\Core\Listener;
|
||||||
|
|
||||||
use Flarum\Event\ExtensionWillBeEnabled;
|
|
||||||
use Flarum\Event\ExtensionWillBeDisabled;
|
use Flarum\Event\ExtensionWillBeDisabled;
|
||||||
use Illuminate\Contracts\Events\Dispatcher;
|
use Illuminate\Contracts\Events\Dispatcher;
|
||||||
use Flarum\Http\Exception\MethodNotAllowedException;
|
use Flarum\Http\Exception\MethodNotAllowedException;
|
||||||
@@ -22,18 +21,9 @@ class ExtensionModificationValidator
|
|||||||
*/
|
*/
|
||||||
public function subscribe(Dispatcher $events)
|
public function subscribe(Dispatcher $events)
|
||||||
{
|
{
|
||||||
$events->listen(ExtensionWillBeEnabled::class, [$this, 'whenExtensionWillBeEnabled']);
|
|
||||||
$events->listen(ExtensionWillBeDisabled::class, [$this, 'whenExtensionWillBeDisabled']);
|
$events->listen(ExtensionWillBeDisabled::class, [$this, 'whenExtensionWillBeDisabled']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param ExtensionWillBeEnabled $event
|
|
||||||
*/
|
|
||||||
public function whenExtensionWillBeEnabled(ExtensionWillBeEnabled $event)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ExtensionWillBeDisabled $event
|
* @param ExtensionWillBeDisabled $event
|
||||||
* @throws MethodNotAllowedException
|
* @throws MethodNotAllowedException
|
||||||
|
Reference in New Issue
Block a user