public function share($key, $value = null)
    {
        if (! is_array($key)) {
            return parent::share($key, $this->decorate($value));
        }

        return parent::share($this->decorate($key));
    }
public function share($key, $value = null)
    {
        if (! is_array($key)) {
            return parent::share($key, $this->decorate($value));
        }

        return parent::share($this->decorate($key));
    }
public function share ( $ key , $ value = null ) { if ( ! is_array ( $ key ) ) { return parent :: share ( $ key , $ this -> decorate ( $ value ) ) ; } return parent :: share ( $ this -> decorate ( $ key ) ) ; }
Add a piece of shared data to the factory.

@param string $key
@param mixed $value
Add a piece of shared data to the factory .