fix namespace issue on exception
Signed-off-by: apathetic012 <apathetic012@gmail.com>
This commit is contained in:
parent
7256dc2a65
commit
727afc1bfa
|
|
@ -158,7 +158,7 @@ protected static function build($type, $parameters = array())
|
||||||
// no binding registered for the abstraction so we need to bail out.
|
// no binding registered for the abstraction so we need to bail out.
|
||||||
if ( ! $reflector->isInstantiable())
|
if ( ! $reflector->isInstantiable())
|
||||||
{
|
{
|
||||||
throw new Exception("Resolution target [$type] is not instantiable.");
|
throw new \Exception("Resolution target [$type] is not instantiable.");
|
||||||
}
|
}
|
||||||
|
|
||||||
$constructor = $reflector->getConstructor();
|
$constructor = $reflector->getConstructor();
|
||||||
|
|
@ -195,7 +195,7 @@ protected static function dependencies($parameters)
|
||||||
// we'll just bomb out with an error since we have nowhere to go.
|
// we'll just bomb out with an error since we have nowhere to go.
|
||||||
if (is_null($dependency))
|
if (is_null($dependency))
|
||||||
{
|
{
|
||||||
throw new Exception("Unresolvable dependency resolving [$parameter].");
|
throw new \Exception("Unresolvable dependency resolving [$parameter].");
|
||||||
}
|
}
|
||||||
|
|
||||||
$dependencies[] = static::resolve($dependency->name);
|
$dependencies[] = static::resolve($dependency->name);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue