Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | <?php |
2 | |||||
3 | namespace Illuminate\Contracts\Routing; | ||||
4 | |||||
5 | interface BindingRegistrar | ||||
6 | { | ||||
7 | /** | ||||
8 | * Add a new route parameter binder. | ||||
9 | * | ||||
10 | * @param string $key | ||||
11 | * @param string|callable $binder | ||||
12 | * @return void | ||||
13 | */ | ||||
14 | public function bind($key, $binder); | ||||
15 | |||||
16 | /** | ||||
17 | * Get the binding callback for a given binding. | ||||
18 | * | ||||
19 | * @param string $key | ||||
20 | * @return \Closure | ||||
21 | */ | ||||
22 | public function getBindingCallback($key); | ||||
23 | } |