use CoreFramework\Object\BaseFrameworkSystem;
// Import SPL stuff
+use \InvalidArgumentException;
use \RecursiveDirectoryIterator;
use \RecursiveIteratorIterator;
* ----------------------------------
* 1.5
* - Namespace scheme Project\Package[\SubPackage...] is fully supported and
- * throws an E_USER_WARNING if not present. The last part will be always the
- * class' name.
+ * throws an InvalidArgumentException if not present. The last part will be
+ * always the class' name.
* 1.4
* - Some comments improved, other minor improvements
* 1.3
// At least 3 parts should be there
if (count($classNameParts) < 3) {
// Namespace scheme is: Project\Package[\SubPackage...]
- trigger_error(sprintf('Class name "%s" is not conform to naming-convention: Project\Package[\SubPackage...]\SomeFooBar', $className), E_USER_WARNING);
+ throw new InvalidArgumentException(sprintf('Class name "%s" is not conform to naming-convention: Project\Package[\SubPackage...]\SomeFooBar', $className));
} // END - if
// Get last element