Merge pull request #1049 from Apathetic012/develop

fix namespace issue on exception
This commit is contained in:
Taylor Otwell 2012-08-09 20:44:15 -07:00
commit 29a4ac2701
1 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ protected static function build($type, $parameters = array())
// 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();
@ -196,7 +196,7 @@ protected static function dependencies($parameters)
// 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);