micseres/micro-service-bundle

微服务包

安装数: 12,161

依赖者: 0

建议者: 0

安全性: 0

星标: 2

关注者: 3

分支: 0

开放问题: 3

类型:symfony-bundle

1.0.3 2019-12-04 14:28 UTC

This package is auto-updated.

Last update: 2024-09-05 00:54:36 UTC


README

配置

micro_service:
  connections:
    passport:
      ip: 127.0.0.1
      port: 9001
      route:  passport
      apiKey:  pass
      algorithm:  aes128

注册

return [
        \Micseres\MicroServiceBundle\MicroServiceBundle::class => ['all' => true],
];

使用说明

    protected function execute(InputInterface $input, OutputInterface $output): void
    {
        $this->input  = $input;
        $this->output = $output;

        $this->microServiceReactor->setController([$this, 'generate']);
        $this->microServiceReactor->setLogger([$this, 'log']);

        $this->microServiceReactor->process();
    }

许可证

软删除包是开源软件,遵循MIT许可证