HandlerAction.php 361 B

1234567891011121314151617181920
  1. <?php
  2. class HandlerAction extends Action
  3. {
  4. protected $handler;
  5. public function __construct($path, $method, IHandler $handler)
  6. {
  7. parent::__construct($path, $method);
  8. $this->handler = $handler;
  9. }
  10. public function execute(): void
  11. {
  12. $this->handler->execute($this);
  13. }
  14. public function render(): void
  15. {}
  16. }