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 e3a5721..afe1db6 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(