DispatchableInterface.php 629 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Zend Framework (http://framework.zend.com/)
  4. *
  5. * @link http://github.com/zendframework/zf2 for the canonical source repository
  6. * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
  7. * @license http://framework.zend.com/license/new-bsd New BSD License
  8. */
  9. namespace Zend\Stdlib;
  10. interface DispatchableInterface
  11. {
  12. /**
  13. * Dispatch a request
  14. *
  15. * @param RequestInterface $request
  16. * @param null|ResponseInterface $response
  17. * @return Response|mixed
  18. */
  19. public function dispatch(RequestInterface $request, ResponseInterface $response = null);
  20. }