mirror of
https://github.com/flarum/core.git
synced 2025-07-29 20:50:28 +02:00
Move command classes to domain namespaces
They will probably be refactored away at a later stage (when we get rid of the command bus). Until then, this lets us remove the Flarum\Core namespace and actually feels quite clean.
This commit is contained in:
@@ -41,15 +41,15 @@ class UserServiceProvider extends AbstractServiceProvider
|
||||
return $app->make('Illuminate\Contracts\Filesystem\Factory')->disk('flarum-avatars')->getDriver();
|
||||
};
|
||||
|
||||
$this->app->when('Flarum\Core\Command\UploadAvatarHandler')
|
||||
$this->app->when('Flarum\User\Command\UploadAvatarHandler')
|
||||
->needs('League\Flysystem\FilesystemInterface')
|
||||
->give($avatarsFilesystem);
|
||||
|
||||
$this->app->when('Flarum\Core\Command\DeleteAvatarHandler')
|
||||
$this->app->when('Flarum\User\Command\DeleteAvatarHandler')
|
||||
->needs('League\Flysystem\FilesystemInterface')
|
||||
->give($avatarsFilesystem);
|
||||
|
||||
$this->app->when('Flarum\Core\Command\RegisterUserHandler')
|
||||
$this->app->when('Flarum\User\Command\RegisterUserHandler')
|
||||
->needs('League\Flysystem\FilesystemInterface')
|
||||
->give($avatarsFilesystem);
|
||||
}
|
||||
|
Reference in New Issue
Block a user