BindingRegistrar.php 447 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Illuminate\Contracts\Routing;
  3. interface BindingRegistrar
  4. {
  5. /**
  6. * Add a new route parameter binder.
  7. *
  8. * @param string $key
  9. * @param string|callable $binder
  10. * @return void
  11. */
  12. public function bind($key, $binder);
  13. /**
  14. * Get the binding callback for a given binding.
  15. *
  16. * @param string $key
  17. * @return \Closure
  18. */
  19. public function getBindingCallback($key);
  20. }