From: Roland Häder Date: Sun, 23 Aug 2009 23:36:02 +0000 (+0000) Subject: We should implement no default resolver anymore X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9d7541b95f66a80947abfc28097b8cad54ff104b;p=core.git We should implement no default resolver anymore --- diff --git a/inc/classes/main/resolver/controller/class_BaseControllerResolver.php b/inc/classes/main/resolver/controller/class_BaseControllerResolver.php index e3a57211..afe1db6e 100644 --- a/inc/classes/main/resolver/controller/class_BaseControllerResolver.php +++ b/inc/classes/main/resolver/controller/class_BaseControllerResolver.php @@ -126,17 +126,10 @@ class BaseControllerResolver extends BaseResolver { $resolverConfigEntry = ''; // Try to read a config entry for our resolver including controller name... ;-) - try { - // Create the resolver name - $resolverConfigEntry = sprintf("%s_cmd_%s_resolver_class", strtolower($this->getControllerPrefix()), strtolower($controllerName)); - - // Get the config, this will throw an exception if there is no special command resolver - $resolverClass = $this->getConfigInstance()->getConfigEntry($resolverConfigEntry); - } catch (ConfigEntryNotFoundException $e) { - // Use default resolver entry - // @TODO Maybe we need to log this? - $resolverConfigEntry = strtolower($this->getControllerPrefix()) . '_cmd_resolver_class'; - } + $resolverConfigEntry = sprintf("%s_cmd_%s_resolver_class", strtolower($this->getControllerPrefix()), strtolower($controllerName)); + + // Get the config, this will throw an exception if there is no special command resolver + $resolverClass = $this->getConfigInstance()->getConfigEntry($resolverConfigEntry); // Initiate the resolver and controller $resolverInstance = ObjectFactory::createObjectByConfiguredName(