ApiController.tpl 453 B

123456789101112131415161718192021
  1. <?php
  2. namespace App\{module}\Controllers;
  3. use App\{module}\Services\Api{action}Service;
  4. use App\Base\Controllers\ApiBaseController;
  5. use Illuminate\Http\Request;
  6. class Api{action}Controller extends ApiBaseController
  7. {
  8. private $service;
  9. /**
  10. * Api{action}Controller constructor.
  11. * @param Api{action}Service $service
  12. */
  13. public function __construct(Api{action}Service $service)
  14. {
  15. $this->service = $service;
  16. }
  17. }