Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

[Zend_Application] Incorrect number of Arguments in calling registerNamespace #106

Closed
LuCarD opened this issue Jan 4, 2011 · 0 comments
Closed

Comments

@LuCarD
Copy link

LuCarD commented Jan 4, 2011

In Zend_Application the registerNameSpace is called from the setAutoloaderNamespaces Method.

public function setAutoloaderNamespaces(array $namespaces)   
 {
    $autoloader = $this->getAutoloader();

    foreach ($namespaces as $namespace) {
        $autoloader->registerNamespace($namespace);
    }

    return $this;
}

The autoloader ( Zend\Loader\StandardAutoloader ) is expecting an extra directory argument.
/**
* Register a namespace/directory pair
*
* @param string $namespace
* @param string $directory
* @return StandardAutoloader
*/
public function registerNamespace($namespace, $directory)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants