public function bind($binding, $value)
    {
        $callback = function() use($value) {
            return $this->make($value);
        };

        $callback->bindTo($this);

        $this->bindings[$binding] = $callback;
    }
public function bind($binding, $value)
    {
        $callback = function() use($value) {
            return $this->make($value);
        };

        $callback->bindTo($this);

        $this->bindings[$binding] = $callback;
    }
public function bind ( $ binding , $ value ) { $ callback = function ( ) use ( $ value ) { return $ this -> make ( $ value ) ; } ; $ callback -> bindTo ( $ this ) ; $ this -> bindings [ $ binding ] = $ callback ; }
Binds given value into the container.

@param string $binding
@param string|object $value
@return void
Binds given value into the container .