|
|
@ -54,7 +54,7 @@ class ClassLoader
|
|
|
|
private $useIncludePath = false;
|
|
|
|
private $useIncludePath = false;
|
|
|
|
private $classMap = array();
|
|
|
|
private $classMap = array();
|
|
|
|
|
|
|
|
|
|
|
|
private $classMapAuthoratative = false;
|
|
|
|
private $classMapAuthoritative = false;
|
|
|
|
|
|
|
|
|
|
|
|
public function getPrefixes()
|
|
|
|
public function getPrefixes()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -254,11 +254,11 @@ class ClassLoader
|
|
|
|
* Turns off searching the prefix and fallback directories for classes
|
|
|
|
* Turns off searching the prefix and fallback directories for classes
|
|
|
|
* that have not been registered with the class map.
|
|
|
|
* that have not been registered with the class map.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param bool $classMapAuthoratative
|
|
|
|
* @param bool $classMapAuthoritative
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function setClassMapAuthoritative($classMapAuthoratative)
|
|
|
|
public function setClassMapAuthoritative($classMapAuthoritative)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$this->classMapAuthoratative = $classMapAuthoratative;
|
|
|
|
$this->classMapAuthoritative = $classMapAuthoritative;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -266,9 +266,9 @@ class ClassLoader
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function getClassMapAuthoratative()
|
|
|
|
public function isClassMapAuthoritative()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return $this->classMapAuthoratative;
|
|
|
|
return $this->classMapAuthoritative;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -321,7 +321,8 @@ class ClassLoader
|
|
|
|
// class map lookup
|
|
|
|
// class map lookup
|
|
|
|
if (isset($this->classMap[$class])) {
|
|
|
|
if (isset($this->classMap[$class])) {
|
|
|
|
return $this->classMap[$class];
|
|
|
|
return $this->classMap[$class];
|
|
|
|
} elseif ($this->classMapAuthoratative) {
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($this->classMapAuthoritative) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|