Service.php 1009 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006-2018 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: yunwuxin <448901948@qq.com>
  10. // +----------------------------------------------------------------------
  11. namespace think\swoole;
  12. use think\swoole\command\Queue;
  13. use think\swoole\command\Rpc;
  14. use think\swoole\command\RpcInterface;
  15. use think\swoole\command\Server as ServerCommand;
  16. class Service extends \think\Service
  17. {
  18. public function boot()
  19. {
  20. $this->commands(
  21. ServerCommand::class,
  22. RpcInterface::class,
  23. Rpc::class,
  24. Queue::class
  25. );
  26. }
  27. }