src/Container.php
public function share(string $id, $concrete = null) : DefinitionInterface
    {
        return $this->add($id, $concrete, true);
    }
public function share(string $id, $concrete = null) : DefinitionInterface
    {
        return $this->add($id, $concrete, true);
    }
public function share ( string $ id , $ concrete = null ) : DefinitionInterface { return $ this -> add ( $ id , $ concrete , true ) ; }
Proxy to add with shared as true.

@param string $id
@param mixed  $concrete

@return \League\Container\Definition\DefinitionInterface
Proxy to add with shared as true .