src/Core/Ioc.php
public function share($key, $callback, $name = null)
    {
        return static::factory($name)->share($key, $callback);
    }
public function share($key, $callback, $name = null)
    {
        return static::factory($name)->share($key, $callback);
    }
public function share ( $ key , $ callback , $ name = null ) { return static :: factory ( $ name ) -> share ( $ key , $ callback ) ; }
Convenience method for creating shared keys.

@param   string   $key      Name of dataStore key to set.
@param   callable $callback Callable function to run when requesting the specified $key.
@param   string   $name     Container name.

@return  Container This object for chaining.

@since    2.0
Convenience method for creating shared keys .