Commit 220e30e5 authored by jwage's avatar jwage

[2.0] Fixing the IsolatedClassLoader to work with null ns

parent 50f727b5
...@@ -45,7 +45,7 @@ class IsolatedClassLoader ...@@ -45,7 +45,7 @@ class IsolatedClassLoader
* *
* @param string $ns The namespace to use. * @param string $ns The namespace to use.
*/ */
public function __construct($ns) public function __construct($ns = null)
{ {
$this->_namespace = $ns; $this->_namespace = $ns;
} }
...@@ -96,11 +96,7 @@ class IsolatedClassLoader ...@@ -96,11 +96,7 @@ class IsolatedClassLoader
*/ */
public function loadClass($className) public function loadClass($className)
{ {
/*if (class_exists($className, false) || interface_exists($className, false)) { if ($this->_namespace && strpos($className, $this->_namespace.$this->_namespaceSeparator) !== 0) {
return false;
}*/
if (strpos($className, $this->_namespace.$this->_namespaceSeparator) !== 0) {
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment