// Add interface restriction in Autoload

This commit is contained in:
Jerome Nadaud
2013-11-28 11:46:03 +01:00
parent dde8540a86
commit 9b241d5e1d
+3 -1
View File
@@ -99,7 +99,9 @@ class Autoload
// Since the classname does not exists (we only have a classCore class), we have to emulate the declaration of this class
$class_infos = new ReflectionClass($classname.'Core');
eval(($class_infos->isAbstract() ? 'abstract ' : '').'class '.$classname.' extends '.$classname.'Core {}');
if (!$class_infos->isInterface())
eval(($class_infos->isAbstract() ? 'abstract ' : '').'class '.$classname.' extends '.$classname.'Core {}');
}
else
{