public function attachNamespace($namespace, $paths)
    {
        if (isset($this->namespaces[$namespace])) {
            if (is_array($paths)) {
                $this->namespaces[$namespace] = array_merge($this->namespaces[$namespace], $paths);
            } else {
                $this->namespaces[$namespace][] = $paths;
            }
        } else {
            $this->namespaces[$namespace] = (array) $paths;
        }

        return $this;
    }
public function attachNamespace($namespace, $paths)
    {
        if (isset($this->namespaces[$namespace])) {
            if (is_array($paths)) {
                $this->namespaces[$namespace] = array_merge($this->namespaces[$namespace], $paths);
            } else {
                $this->namespaces[$namespace][] = $paths;
            }
        } else {
            $this->namespaces[$namespace] = (array) $paths;
        }

        return $this;
    }
public function attachNamespace ( $ namespace , $ paths ) { if ( isset ( $ this -> namespaces [ $ namespace ] ) ) { if ( is_array ( $ paths ) ) { $ this -> namespaces [ $ namespace ] = array_merge ( $ this -> namespaces [ $ namespace ] , $ paths ) ; } else { $ this -> namespaces [ $ namespace ] [ ] = $ paths ; } } else { $ this -> namespaces [ $ namespace ] = ( array ) $ paths ; } return $ this ; }
Register a namespace.

@param string $namespace The namespace
@param array|string $paths The path to the namespace
Register a namespace .