public function get($container, $forceNew = false)
    {
        if ($this->shared) {
            if (empty($this->instances) || $forceNew) {
                $this->instances = call_user_func($this->callback, $container);
            }

            return $this->instances;
        }

        return call_user_func($this->callback, $container);
    }
public function get($container, $forceNew = false)
    {
        if ($this->shared) {
            if (empty($this->instances) || $forceNew) {
                $this->instances = call_user_func($this->callback, $container);
            }

            return $this->instances;
        }

        return call_user_func($this->callback, $container);
    }
public function get ( $ container , $ forceNew = false ) { if ( $ this -> shared ) { if ( empty ( $ this -> instances ) || $ forceNew ) { $ this -> instances = call_user_func ( $ this -> callback , $ container ) ; } return $ this -> instances ; } return call_user_func ( $ this -> callback , $ container ) ; }
Get instance of this DataStore.

@param Container $container
@param boolean   $forceNew

@return  mixed
Get instance of this DataStore .