Skip to content

Commit

Permalink
🛠️refactor(scope) restructure file imports in ConfigProvider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
huangdijia committed May 9, 2023
1 parent 4de1b65 commit f970e29
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions src/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@
*/
namespace FriendsOfHyperf\Trigger;

use FriendsOfHyperf\Trigger\Command\SubscribersCommand;
use FriendsOfHyperf\Trigger\Command\TriggersCommand;
use FriendsOfHyperf\Trigger\Listener\OnBootApplicationListener;
use FriendsOfHyperf\Trigger\Mutex\RedisServerMutex;
use FriendsOfHyperf\Trigger\Mutex\ServerMutexInterface;
use FriendsOfHyperf\Trigger\Snapshot\BinLogCurrentSnapshotInterface;
use FriendsOfHyperf\Trigger\Snapshot\RedisBinLogCurrentSnapshot;

class ConfigProvider
{
public function __invoke(): array
Expand All @@ -29,15 +21,16 @@ public function __invoke(): array
Aspect\BinaryDataReaderAspect::class, // Fix MySQLReplication bug
],
'dependencies' => [
ServerMutexInterface::class => RedisServerMutex::class,
BinLogCurrentSnapshotInterface::class => RedisBinLogCurrentSnapshot::class,
Mutex\ServerMutexInterface::class => Mutex\RedisServerMutex::class,
Snapshot\BinLogCurrentSnapshotInterface::class => Snapshot\RedisBinLogCurrentSnapshot::class,
],
'commands' => [
SubscribersCommand::class,
TriggersCommand::class,
Command\ConsumeCommand::class,
Command\SubscribersCommand::class,
Command\TriggersCommand::class,
],
'listeners' => [
OnBootApplicationListener::class,
Listener\OnBootApplicationListener::class,
],
'publish' => [
[
Expand Down

0 comments on commit f970e29

Please sign in to comment.