Commit 29a4ac27 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1049 from Apathetic012/develop

fix namespace issue on exception
parents 343d1327 727afc1b
......@@ -159,7 +159,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();
......@@ -196,7 +196,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);
......
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