代码接收。 Laravel控制器依赖注入

时间:2020-02-18 20:14:14

标签: laravel testing dependency-injection codeception

如何用模拟代替def find_max_letter(a): nums = [] for i in a: nums.append(i[1]) # you can also create this with list-comprehension: nums = [i[1] for i in list] max_num = max(nums) for i in a[::-1]: if max_num == i[1]: return i[0] 中的sendMessageService

控制器

CreateVacationCest

最佳班次

class BotController extends Controller
{
    private $sendMessageService;

    public function __construct(SendMessageService $sendMessageService)
    {
        $this->sendMessageService = $sendMessageService;
    }
}

0 个答案:

没有答案