Browse Source

fix namespace issue on exception

Signed-off-by: apathetic012 <apathetic012@gmail.com>
apathetic012 12 years ago
parent
commit
727afc1bfa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      laravel/ioc.php

+ 2 - 2
laravel/ioc.php

@@ -158,7 +158,7 @@ class IoC {
 		// no binding registered for the abstraction so we need to bail out.
 		if ( ! $reflector->isInstantiable())
 		{
-			throw new Exception("Resolution target [$type] is not instantiable.");
+			throw new \Exception("Resolution target [$type] is not instantiable.");
 		}
 
 		$constructor = $reflector->getConstructor();
@@ -195,7 +195,7 @@ class IoC {
 			// we'll just bomb out with an error since we have nowhere to go.
 			if (is_null($dependency))
 			{
-				throw new Exception("Unresolvable dependency resolving [$parameter].");
+				throw new \Exception("Unresolvable dependency resolving [$parameter].");
 			}
 
 			$dependencies[] = static::resolve($dependency->name);