Service.php 897 B

12345678910111213141516171819202122232425262728
  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\RpcInterface;
  13. use think\swoole\command\Server as ServerCommand;
  14. class Service extends \think\Service
  15. {
  16. public function boot()
  17. {
  18. $this->commands(
  19. ServerCommand::class,
  20. RpcInterface::class
  21. );
  22. }
  23. }