src/Register.php
protected function checkOverrider($namespace)
    {
        if ($this->allowOverride && isset($this->overrides[$namespace])) {
            $oldNamespace = $namespace;

            $namespace = $this->overrides[$namespace]['overrider'];
            $this->classExists($namespace);

            if ($this->overrides[$oldNamespace]['only_once']) {
                $this->unsetOverrider($oldNamespace);
            }
        }

        return $namespace;
    }
protected function checkOverrider($namespace)
    {
        if ($this->allowOverride && isset($this->overrides[$namespace])) {
            $oldNamespace = $namespace;

            $namespace = $this->overrides[$namespace]['overrider'];
            $this->classExists($namespace);

            if ($this->overrides[$oldNamespace]['only_once']) {
                $this->unsetOverrider($oldNamespace);
            }
        }

        return $namespace;
    }
protected function checkOverrider ( $ namespace ) { if ( $ this -> allowOverride && isset ( $ this -> overrides [ $ namespace ] ) ) { $ oldNamespace = $ namespace ; $ namespace = $ this -> overrides [ $ namespace ] [ 'overrider' ] ; $ this -> classExists ( $ namespace ) ; if ( $ this -> overrides [ $ oldNamespace ] [ 'only_once' ] ) { $ this -> unsetOverrider ( $ oldNamespace ) ; } } return $ namespace ; }
check that given class should be replaced by some other

@param string $namespace
@return string
@throws \InvalidArgumentException
check that given class should be replaced by some other