]> git.mxchange.org Git - core.git/commitdiff
We should implement no default resolver anymore
authorRoland Häder <roland@mxchange.org>
Sun, 23 Aug 2009 23:36:02 +0000 (23:36 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 23 Aug 2009 23:36:02 +0000 (23:36 +0000)
inc/classes/main/resolver/controller/class_BaseControllerResolver.php

index e3a57211673c9d486ac5a2ea74c7a37d803e0a5b..afe1db6e1eed83c17ba3b4d79f7fc4f307241433 100644 (file)
@@ -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(