mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-13 07:00:08 +01:00
31 lines
664 B
PHP
31 lines
664 B
PHP
|
<?php
|
||
|
|
||
|
namespace Illuminate\Contracts\Container;
|
||
|
|
||
|
interface ContextualBindingBuilder
|
||
|
{
|
||
|
/**
|
||
|
* Define the abstract target that depends on the context.
|
||
|
*
|
||
|
* @param string $abstract
|
||
|
* @return $this
|
||
|
*/
|
||
|
public function needs($abstract);
|
||
|
|
||
|
/**
|
||
|
* Define the implementation for the contextual binding.
|
||
|
*
|
||
|
* @param \Closure|string $implementation
|
||
|
* @return void
|
||
|
*/
|
||
|
public function give($implementation);
|
||
|
|
||
|
/**
|
||
|
* Define tagged services to be used as the implementation for the contextual binding.
|
||
|
*
|
||
|
* @param string $tag
|
||
|
* @return void
|
||
|
*/
|
||
|
public function giveTagged($tag);
|
||
|
}
|