File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1111 */
1212namespace KY \WorkWxUser \Command ;
1313
14- use Hyperf \Command \Annotation \Command ;
1514use Hyperf \Command \Command as BaseCommand ;
1615use Hyperf \Utils \Filesystem \Filesystem ;
1716use Psr \Container \ContainerInterface ;
1817use Symfony \Component \Finder \Finder ;
1918
20- #[Command]
2119class SyncMigrationCommand extends BaseCommand
2220{
2321 public function __construct (private ContainerInterface $ container )
Original file line number Diff line number Diff line change 1111 */
1212namespace KY \WorkWxUser \Command ;
1313
14- use Hyperf \Command \Annotation \Command ;
1514use Hyperf \Command \Command as HyperfCommand ;
1615use KY \WorkWxUser \UserService ;
1716use KY \WorkWxUser \WeChat \DepartmentWeChat ;
1817use KY \WorkWxUser \WeChat \UserWeChat ;
1918use Psr \Container \ContainerInterface ;
2019
21- #[Command]
2220class WeChatCommand extends HyperfCommand
2321{
2422 public function __construct (protected ContainerInterface $ container )
Original file line number Diff line number Diff line change 1212namespace KY \WorkWxUser ;
1313
1414use EasyWeChat \Work \Application ;
15+ use KY \WorkWxUser \Command \SyncMigrationCommand ;
16+ use KY \WorkWxUser \Command \WeChatCommand ;
1517use KY \WorkWxUser \WeChat \WeChatFactory ;
1618
1719class ConfigProvider
1820{
1921 public function __invoke (): array
2022 {
2123 return [
24+ 'commands ' => [
25+ SyncMigrationCommand::class,
26+ WeChatCommand::class,
27+ ],
2228 'dependencies ' => [
2329 Application::class => WeChatFactory::class,
2430 ],
You can’t perform that action at this time.
0 commit comments