FrameworkBootstrap::getRequestTypeFromSystem()
))
);
- $resolverInstance = ObjectFactory::createObjectByName($resolverClass, array($commandName, $this));
+ $resolverInstance = ObjectFactory::createObjectByName($resolverClass, array($commandName));
// Get a controller instance as well
$this->setControllerInstance($resolverInstance->resolveController());
$templateInstance = $this->prepareTemplateInstance($applicationInstance);
// Transfer application data
- $templateInstance->assignApplicationData($applicationInstance);
+ $templateInstance->assignApplicationData();
// Assign base URL
$templateInstance->assignConfigVariable('base_url');
$templateInstance = $this->prepareTemplateInstance($applicationInstance);
// Assign application data with template engine
- $templateInstance->assignApplicationData($applicationInstance);
+ $templateInstance->assignApplicationData();
// Assign base URL
$templateInstance->assignConfigVariable('base_url');
$templateInstance = $this->prepareTemplateInstance($applicationInstance);
// Transfer application data
- $templateInstance->assignApplicationData($applicationInstance);
+ $templateInstance->assignApplicationData();
// Load the master template
$masterTemplate = $applicationInstance->buildMasterTemplateName();
$templateInstance->assignConfigVariable('base_url');
// Assign all the application's data with template variables
- $templateInstance->assignApplicationData($applicationInstance);
+ $templateInstance->assignApplicationData();
// Load the master template
$masterTemplate = $applicationInstance->buildMasterTemplateName();
$this->actionName = self::convertDashesToUnderscores($applicationInstance->getAppShortName()) . '_login_' . $actReq;
} // END - if
- // Get application instance
- $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
-
// Get a resolver
- $actionResolver = HtmlActionResolver::createHtmlActionResolver($this->actionName, $applicationInstance);
+ $actionResolver = HtmlActionResolver::createHtmlActionResolver($this->actionName);
// Resolve the action
$actionInstance = $actionResolver->resolveAction();
$templateInstance = $this->prepareTemplateInstance($applicationInstance);
// Assign application data with template engine
- $templateInstance->assignApplicationData($applicationInstance);
+ $templateInstance->assignApplicationData();
// Assign base URL
$templateInstance->assignConfigVariable('base_url');
$templateInstance = $this->prepareTemplateInstance($applicationInstance);
// Assign application data with template engine
- $templateInstance->assignApplicationData($applicationInstance);
+ $templateInstance->assignApplicationData();
// Load the master template
$masterTemplate = $applicationInstance->buildMasterTemplateName();
$templateInstance = $this->prepareTemplateInstance($applicationInstance);
// Assign application data
- $templateInstance->assignApplicationData($applicationInstance);
+ $templateInstance->assignApplicationData();
// Load the master template
$masterTemplate = $applicationInstance->buildMasterTemplateName();
$templateInstance = $this->prepareTemplateInstance($applicationInstance);
// Assign all the application's data with template variables
- $templateInstance->assignApplicationData($applicationInstance);
+ $templateInstance->assignApplicationData();
// Assign base URL
$templateInstance->assignConfigVariable('base_url');
$templateInstance = $this->prepareTemplateInstance($applicationInstance);
// Assign the application data with the template engine
- $templateInstance->assignApplicationData($applicationInstance);
+ $templateInstance->assignApplicationData();
// Get a mailer class
- $mailerInstance = ObjectFactory::createObjectByConfiguredName('mailer_class', array($templateInstance, $applicationInstance, 'resend_link'));
+ $mailerInstance = ObjectFactory::createObjectByConfiguredName('mailer_class', array($templateInstance, 'resend_link'));
// Set this mailer in our template engine
$templateInstance->setMailerInstance($mailerInstance);
$templateInstance = $this->prepareTemplateInstance($applicationInstance);
// Transfer application data
- $templateInstance->assignApplicationData($applicationInstance);
+ $templateInstance->assignApplicationData();
// Load the master template
$masterTemplate = $applicationInstance->buildMasterTemplateName();
// Import framework stuff
use Org\Mxchange\CoreFramework\Generic\BaseDecorator;
-use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
use Org\Mxchange\CoreFramework\Response\Responseable;
use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
/**
* Assigns all the application data with template variables
*
- * @param $applicationInstance A manageable application instance
* @return void
*/
- public function assignApplicationData (ManageableApplication $applicationInstance) {
+ public function assignApplicationData () {
// Call the inner class' method
- $this->getTemplateInstance()->assignApplicationData($applicationInstance);
+ $this->getTemplateInstance()->assignApplicationData();
}
/**
use Org\Mxchange\CoreFramework\Mailer\BaseMailer;
use Org\Mxchange\CoreFramework\Mailer\DeliverableMail;
use Org\Mxchange\CoreFramework\Manager\Login\ManageableMember;
-use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
* @param $templateName Name of email template to set
* @return $mailerInstance An instance of this mailer class
*/
- public static final function createDebugMailer (CompileableTemplate $templateInstance, ManageableApplication $applicationInstance, $templateName) {
+ public static final function createDebugMailer (CompileableTemplate $templateInstance, $templateName) {
// Get a new instance
$mailerInstance = new DebugMailer();
namespace Org\Mxchange\CoreFramework\Resolver\Action;
// Import framework stuff
-use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
use Org\Mxchange\CoreFramework\Request\Requestable;
// Import SPL stuff
* Creates an instance of a Html action resolver with a given default action
*
* @param $actionName The default action we shall execute
- * @param $applicationInstance An instance of a manageable application helper class
* @return $resolverInstance The prepared action resolver instance
* @throws InvalidArgumentException Thrown if default action is not set
* @throws InvalidActionException Thrown if default action is invalid
*/
- public static final function createHtmlActionResolver ($actionName, ManageableApplication $applicationInstance) {
+ public static final function createHtmlActionResolver ($actionName) {
// Create the new instance
$resolverInstance = new HtmlActionResolver();
// Import framework stuff
use Org\Mxchange\CoreFramework\Command\BaseCommand;
use Org\Mxchange\CoreFramework\Command\InvalidCommandException;
-use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
// Import SPL stuff
* Creates an instance of a Console command resolver with a given default command
*
* @param $commandName The default command we shall execute
- * @param $applicationInstance An instance of a manageable application helper class
* @return $resolverInstance The prepared command resolver instance
- * @throws InvalidArgumentException Thrown if default command is not set
+ * @throws InvalidArgumentException Thrown if default command is not set
* @throws InvalidCommandException Thrown if default command is invalid
*/
- public static final function createConsoleCommandResolver ($commandName, ManageableApplication $applicationInstance) {
+ public static final function createConsoleCommandResolver ($commandName) {
// Create the new instance
$resolverInstance = new ConsoleCommandResolver();
// Import framework stuff
use Org\Mxchange\CoreFramework\Command\InvalidCommandException;
-use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
// Import SPL stuff
* Creates an instance of a Html command resolver with a given default command
*
* @param $commandName The default command we shall execute
- * @param $applicationInstance An instance of a manageable application helper class
* @return $resolverInstance The prepared command resolver instance
* @throws InvalidArgumentException Thrown if default command is not set
* @throws InvalidCommandException Thrown if default command is invalid
*/
- public static final function createHtmlCommandResolver ($commandName, ManageableApplication $applicationInstance) {
+ public static final function createHtmlCommandResolver ($commandName) {
// Create the new instance
$resolverInstance = new HtmlCommandResolver();
* Creates an instance of a Image command resolver with a given default command
*
* @param $commandName The default command we shall execute
- * @param $applicationInstance An instance of a manageable application helper class
* @return $resolverInstance The prepared command resolver instance
* @throws InvalidArgumentException Thrown if default command is not set
* @throws InvalidCommandException Thrown if default command is invalid
*/
- public static final function createImageCommandResolver ($commandName, ManageableApplication $applicationInstance) {
+ public static final function createImageCommandResolver ($commandName) {
// Create the new instance
$resolverInstance = new ImageCommandResolver();
// Import framework stuff
use Org\Mxchange\CoreFramework\Controller\BaseController;
-use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
use Org\Mxchange\CoreFramework\Resolver\Controller\ControllerResolver;
use Org\Mxchange\CoreFramework\Resolver\Controller\BaseControllerResolver;
*
* @param $namespace Namespace to look in
* @param $controllerName The controller we shall resolve
- * @param $applicationInstance An instance of a manageable application helper class
* @return $resolverInstance The prepared controller resolver instance
* @throws InvalidArgumentException Thrown if default controller is not set
* @throws InvalidControllerException Thrown if default controller is invalid
*/
- public static final function createConsoleControllerResolver ($namespace, $controllerName, ManageableApplication $applicationInstance) {
+ public static final function createConsoleControllerResolver ($namespace, $controllerName) {
// Create the new instance
$resolverInstance = new ConsoleControllerResolver();
// Import framework stuff
use Org\Mxchange\CoreFramework\Controller\BaseController;
-use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
use Org\Mxchange\CoreFramework\Resolver\Controller\ControllerResolver;
use Org\Mxchange\CoreFramework\Resolver\Controller\BaseControllerResolver;
*
* @param $namespace Namespace to look in
* @param $controllerName The controller we shall resolve
- * @param $applicationInstance An instance of a manageable application helper class
* @return $resolverInstance The prepared controller resolver instance
* @throws InvalidArgumentException Thrown if default controller is not set
* @throws InvalidControllerException Thrown if default controller is invalid
*/
- public static final function createHtmlControllerResolver ($namespace, $controllerName, ManageableApplication $applicationInstance) {
+ public static final function createHtmlControllerResolver ($namespace, $controllerName) {
// Create the new instance
$resolverInstance = new HtmlControllerResolver();
// Import framework stuff
use Org\Mxchange\CoreFramework\Controller\BaseController;
-use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
use Org\Mxchange\CoreFramework\Resolver\Controller\ControllerResolver;
use Org\Mxchange\CoreFramework\Resolver\Controller\BaseControllerResolver;
*
* @param $namespace Namespace to look in
* @param $controllerName The controller we shall resolve
- * @param $applicationInstance An instance of a manageable application helper class
* @return $resolverInstance The prepared controller resolver instance
* @throws InvalidArgumentException Thrown if default controller is not set
* @throws InvalidControllerException Thrown if default controller is invalid
*/
- public static final function createImageControllerResolver ($namespace, $controllerName, ManageableApplication $applicationInstance) {
+ public static final function createImageControllerResolver ($namespace, $controllerName) {
// Create the new instance
$resolverInstance = new ImageControllerResolver();
use Org\Mxchange\CoreFramework\Filesystem\FileNotFoundException;
use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
use Org\Mxchange\CoreFramework\Response\Responseable;
// Import SPL stuff
/**
* Assigns all the application data with template variables
*
- * @param $applicationInstance A manageable application instance
* @return void
*/
- public function assignApplicationData (ManageableApplication $applicationInstance) {
+ public function assignApplicationData () {
+ // Get application instance
+ $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
+
// Get long name and assign it
$this->assignVariable('app_full_name' , $applicationInstance->getAppName());
// Import framework stuff
use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
-use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
use Org\Mxchange\CoreFramework\Response\Responseable;
/**
/**
* Assigns all the application data with template variables
*
- * @param $applicationInstance A manageable application instance
* @return void
*/
- function assignApplicationData (ManageableApplication $applicationInstance);
+ function assignApplicationData ();
/**
* "Compiles" a variable by replacing {?var?} with it's content
// Import framework stuff
use Org\Mxchange\CoreFramework\Command\InvalidCommandException;
-use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
use Org\Mxchange\CoreFramework\Resolver\Command\BaseCommandResolver;
use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
* Creates an instance of a TestsConsole command resolver with a given default command
*
* @param $commandName The default command we shall execute
- * @param $applicationInstance An instance of a manageable application helper class
* @return $resolverInstance The prepared command resolver instance
* @throws InvalidArgumentException Thrown if default command is not set
* @throws InvalidCommandException Thrown if default command is invalid
*/
- public static final function createTestsConsoleCommandResolver ($commandName, ManageableApplication $applicationInstance) {
+ public static final function createTestsConsoleCommandResolver ($commandName) {
// Create the new instance
$resolverInstance = new TestsConsoleCommandResolver();
// Import framework stuff
use Org\Mxchange\CoreFramework\Controller\BaseController;
use Org\Mxchange\CoreFramework\Controller\Controller;
-use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
use Org\Mxchange\CoreFramework\Resolver\Controller\BaseControllerResolver;
use Org\Mxchange\CoreFramework\Resolver\Controller\ControllerResolver;
* Creates an instance of a resolver class with a given command
*
* @param $controllerName The controller we shall resolve
- * @param $applicationInstance An instance of a manageable application helper class
* @return $resolverInstance The prepared controller resolver instance
* @throws InvalidArgumentException Thrown if default command is not set
* @throws InvalidControllerException Thrown if default controller is invalid
*/
- public static final function createTestsConsoleControllerResolver ($controllerName, ManageableApplication $applicationInstance) {
+ public static final function createTestsConsoleControllerResolver ($controllerName) {
// Create the new instance
$resolverInstance = new TestsConsoleControllerResolver();
$applicationInstance = ApplicationHelper::getSelfInstance();
// Assign application data
- $templateInstance->assignApplicationData($applicationInstance);
+ $templateInstance->assignApplicationData();
} // END - if
// We only try this