correct namespaces

This commit is contained in:
coderkun 2013-09-22 21:39:53 +02:00
parent 7348ca080c
commit 1779c38218
2 changed files with 8 additions and 8 deletions

View file

@ -398,7 +398,7 @@
{
try {
// Load Agent
BottomlevelAgent::load($agentName);
\nre\agents\BottomlevelAgent::load($agentName);
// Construct Agent
$this->subAgents[] = call_user_func_array(
@ -468,7 +468,7 @@
return array(
'name' => strtolower($agentName),
'response' => $response,
'object' => BottomlevelAgent::factory(
'object' => \nre\agents\BottomlevelAgent::factory(
$agentName,
$this->request,
$response,
@ -548,7 +548,7 @@
try {
// Load Agenten
BottomlevelAgent::load($agentName);
\nre\agents\BottomlevelAgent::load($agentName);
// Construct Agent
$subAgent = $this->newSubAgent($agentName);

View file

@ -42,11 +42,11 @@
// Validate class
ClassLoader::check($className, get_class());
}
catch(ClassNotValidException $e) {
throw new DriverNotValidException($e->getClassName());
catch(\nre\exceptions\ClassNotValidException $e) {
throw new \nre\exceptions\DriverNotValidException($e->getClassName());
}
catch(ClassNotFoundException $e) {
throw new DriverNotFoundException($e->getClassName());
catch(\nre\exceptions\ClassNotFoundException $e) {
throw new \nre\exceptions\DriverNotFoundException($e->getClassName());
}
}
@ -75,7 +75,7 @@
*/
private static function getClassName($driverName)
{
$className = \nre\core\ClassLoader::concatClassNames($driverName, \nre\core\ClassLoader::stripNamespace(get_class()));
$className = ClassLoader::concatClassNames($driverName, ClassLoader::stripNamespace(get_class()));
return "\\nre\\drivers\\$className";