mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
33 lines
741 B
PHP
33 lines
741 B
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.4
|
|
*
|
|
* @package phpOMS\Dispatcher
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://orange-management.org
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\Dispatcher;
|
|
|
|
interface DispatcherInterface
|
|
{
|
|
/**
|
|
* Dispatch controller.
|
|
*
|
|
* @param array|\Closure|string $controller Controller
|
|
* @param null|array|mixed ...$data Data
|
|
*
|
|
* @return array Returns array of all dispatched results
|
|
*
|
|
* @throws \UnexpectedValueException This exception is thrown for unsupported controller representations
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function dispatch($controller, ...$data) : array;
|
|
}
|