2018-10-16から1日間の記事一覧
忘れるわりに重要なのでメモ! private $hogeService; public function __construct(HogeService $hogeService = null) { $this->hogeService = $hogeService ?? new HogeService(); } 参考サイト 依存性注入(DI)の解説とやり方
忘れるわりに重要なのでメモ! private $hogeService; public function __construct(HogeService $hogeService = null) { $this->hogeService = $hogeService ?? new HogeService(); } 参考サイト 依存性注入(DI)の解説とやり方