Updates class autoloader to use class_alias

Makes Exceptions extend the base classes, rather than the subclasses to
avoid class redefinition errors.
Makes PluginFactories define the interface using the base class rather
than a subclass to avoid class_implements() to fail by testing for a
class not in the hierarchy.
This commit is contained in:
2010-10-11 23:04:20 +01:00
parent f592abe15f
commit 6d1705f5a9
4 changed files with 43 additions and 43 deletions

View File

@@ -3,7 +3,7 @@
class SihnonFramework_Config_PluginFactory extends Sihnon_PluginFactory {
protected static $plugin_prefix = 'Sihnon_Config_Plugin_';
protected static $plugin_interface = 'Sihnon_Config_IPlugin';
protected static $plugin_interface = 'SihnonFramework_Config_IPlugin';
protected static $plugin_dir = array(
SihnonFramework_Lib => 'SihnonFramework/Config/Plugin',
Sihnon_Lib => 'Sihnon/Config/Plugin/',