ContextualBindingBuilder.php 463 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Illuminate\Contracts\Container;
  3. interface ContextualBindingBuilder
  4. {
  5. /**
  6. * Define the abstract target that depends on the context.
  7. *
  8. * @param string $abstract
  9. * @return $this
  10. */
  11. public function needs($abstract);
  12. /**
  13. * Define the implementation for the contextual binding.
  14. *
  15. * @param \Closure|string $implementation
  16. * @return void
  17. */
  18. public function give($implementation);
  19. }