// Import framework stuff
use Org\Mxchange\CoreFramework\Controller\Controller;
-use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
use Org\Mxchange\CoreFramework\Request\Requestable;
use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
use Org\Mxchange\CoreFramework\Response\Responseable;
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Get the action instance from registry
- $actionInstance = Registry::getRegistry()->getInstance('action');
+ $actionInstance = GenericRegistry::getRegistry()->getInstance('action');
// Do we have an action here?
if ($actionInstance instanceof PerformableAction) {
} // END - if
// Get the application instance
- $applicationInstance = $this->getResolverInstance()->getApplicationInstance();
+ $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
// Prepare a template instance
$templateInstance = $this->prepareTemplateInstance($applicationInstance);
$actionInstance = NULL;
// Get registry
- $registryInstance = Registry::getRegistry();
+ $registryInstance = GenericRegistry::getRegistry();
// Get our application instance from the registry
$applicationInstance = $registryInstance->getInstance('application');
} // END - if
// Get application instance
- $applicationInstance = $this->getResolverInstance()->getApplicationInstance();
+ $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
// Get a resolver
$actionResolver = HtmlActionResolver::createHtmlActionResolver($this->actionName, $applicationInstance);
$actionInstance->addExtraFilters($controllerInstance, $requestInstance);
// Remember this action in registry
- Registry::getRegistry()->addInstance('action', $actionInstance);
+ GenericRegistry::getRegistry()->addInstance('action', $actionInstance);
}
}