1
0
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:
Franz Liedke
2017-06-24 15:21:07 +02:00
parent 95dc7e71f4
commit 5b0d0d9f0f
57 changed files with 115 additions and 119 deletions

View File

@@ -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);
}