1: <?php
2: /**
3: * This file is part of the Autarky package.
4: *
5: * (c) Andreas Lutro <anlutro@gmail.com>
6: *
7: * For the full copyright and license information, please view the LICENSE
8: * file that was distributed with this source code.
9: */
10:
11: namespace Autarky\Routing;
12:
13: /**
14: * Class that can invoke a route's callable.
15: */
16: interface InvokerInterface
17: {
18: /**
19: * Invoke a route's callable.
20: *
21: * @param string|array $callable
22: * @param array $params
23: * @param array $constructorArgs
24: *
25: * @return mixed
26: */
27: public function invoke($callable, array $params = [], $constructorArgs = []);
28: }
29: