// Get a controller resolver
$resolverClass = sprintf(
- 'CoreFramework\Tests\Resolver\Controller\%s',
+ 'Hub\Resolver\Controller\%s',
self::convertToClassName(sprintf(
'%s_%s_controller_resolver',
$this->getAppShortName(),
<?php
+// Own namespace
+namespace Hub\Resolver\Command;
+
+// Import Framework stuff
+use CoreFramework\Manager\ManageableApplication;
+
/**
* A command resolver for local (non-hubbed) web commands
*
<?php
+// Own namespace
+namespace Hub\Resolver\Command;
+
+// Import Framework stuff
+use CoreFramework\Manager\ManageableApplication;
+
/**
* A command resolver for HTML commands
*
<?php
+// Own namespace
+namespace Hub\Resolver\Controller;
+
+// Import framework stuff
+use CoreFramework\Manager\ManageableApplication;
+use CoreFramework\Resolver\Controller\BaseControllerResolver;
+use CoreFramework\Resolver\Controller\ControllerResolver;
+
/**
* A resolver for resolving controllers locally
*
if (empty($controllerName)) {
// Then thrown an exception here
throw new EmptyVariableException(array($resolverInstance, 'commandName'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING);
- } elseif ($resolverInstance->isControllerValid($controllerName) === FALSE) {
+ } elseif ($resolverInstance->isControllerValid('Hub\Controller', $controllerName) === false) {
// Invalid command found
throw new InvalidControllerException(array($resolverInstance, $controllerName), self::EXCEPTION_INVALID_CONTROLLER);
}
<?php
+// Own namespace
+namespace Hub\Resolver\Controller;
+
+// Import framework stuff
+use CoreFramework\Manager\ManageableApplication;
+use CoreFramework\Resolver\Controller\BaseControllerResolver;
+use CoreFramework\Resolver\Controller\ControllerResolver;
+
/**
* A resolver for resolving controllers locally
*
if (empty($controllerName)) {
// Then thrown an exception here
throw new EmptyVariableException(array($resolverInstance, 'commandName'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING);
- } elseif ($resolverInstance->isControllerValid($controllerName) === FALSE) {
+ } elseif ($resolverInstance->isControllerValid('Hub\Controller', $controllerName) === false) {
// Invalid command found
throw new InvalidControllerException(array($resolverInstance, $controllerName), self::EXCEPTION_INVALID_CONTROLLER);
}