BannerController.php 605 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace App\Generated\Controllers\V1_1;
  3. use App\Http\Services\V1_1\BannerService;
  4. use App\Generated\V1_1\Messages\Banner\PositionListMessage;
  5. use App\Http\Controllers\Controller;
  6. use DB;
  7. class BannerController extends Controller
  8. {
  9. public $handler;
  10. public function __construct(BannerService $handler)
  11. {
  12. $this->handler = $handler;
  13. }
  14. public function positionList(PositionListMessage $message)
  15. {
  16. $message->validateInput();
  17. $this->handler->positionList($message);
  18. $message->validateOutput();
  19. return $message->getResponse();
  20. }
  21. }