ContextualBindingBuilder
interface ContextualBindingBuilder (View source)
Methods
                    $this
                
                
                    needs(string $abstract)
        
                                            
                
            Define the abstract target that depends on the context.
                    $this
                
                
                
            
                    $this
                
                
                    giveTagged(string $tag)
        
                                            
                
            Define tagged services to be used as the implementation for the contextual binding.
                    $this
                
                
                    giveConfig(string $key, mixed $default = null)
        
                                            
                
            Specify the configuration item to bind as a primitive.
Details
        
                            $this
    needs(string $abstract)
        
    
    Define the abstract target that depends on the context.
        
                            $this
    give(Closure|string|array $implementation)
        
    
    Define the implementation for the contextual binding.
        
                            $this
    giveTagged(string $tag)
        
    
    Define tagged services to be used as the implementation for the contextual binding.
        
                            $this
    giveConfig(string $key, mixed $default = null)
        
    
    Specify the configuration item to bind as a primitive.