public function createResolver($namespace, $resolution, $newInstance = false)
    {
        if (!$this->hasResolution($namespace)) {
            if ($newInstance) {
                $resolution = [$resolution, true];
            }
            $this->registeredList['resolves'][$namespace] = $resolution;
        }
    }
public function createResolver($namespace, $resolution, $newInstance = false)
    {
        if (!$this->hasResolution($namespace)) {
            if ($newInstance) {
                $resolution = [$resolution, true];
            }
            $this->registeredList['resolves'][$namespace] = $resolution;
        }
    }
public function createResolver ( $ namespace , $ resolution , $ newInstance = false ) { if ( ! $ this -> hasResolution ( $ namespace ) ) { if ( $ newInstance ) { $ resolution = [ $ resolution , true ] ; } $ this -> registeredList [ 'resolves' ] [ $ namespace ] = $ resolution ; } }
Resolve a given namespace to given resolution.

Will check whether it need new instance or pointed into already
defined service according to $newInstance value (default to false)

@param string $namespace
@param string $resolution
@param bool   $newInstance
Resolve a given namespace to given resolution .