travel/service/vendor/illuminate/contracts/Routing/BindingRegistrar.php

24 lines
447 B
PHP
Raw Normal View History

2024-06-24 11:28:18 +08:00
<?php
namespace Illuminate\Contracts\Routing;
interface BindingRegistrar
{
/**
* Add a new route parameter binder.
*
* @param string $key
* @param string|callable $binder
* @return void
*/
public function bind($key, $binder);
/**
* Get the binding callback for a given binding.
*
* @param string $key
* @return \Closure
*/
public function getBindingCallback($key);
}