diff --git a/src/Container/ClassNotFoundException.php b/src/Container/ClassNotFoundException.php new file mode 100644 index 0000000..e0e6325 --- /dev/null +++ b/src/Container/ClassNotFoundException.php @@ -0,0 +1,16 @@ +aliases[$className]; } if (!isset($this->definitions[$className])) { - throw new Exception("Class $className not found in container"); + throw new ClassNotFoundException($className); } $definition = $this->definitions[$className]['definition'];