]> git.mxchange.org Git - core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Wed, 11 Apr 2018 20:46:10 +0000 (22:46 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 11 Apr 2018 20:46:10 +0000 (22:46 +0200)
- no need to handle $applicationInstance around as it exists in GenericRegister
  already
- please update your index.php to this

Signed-off-by: Roland Häder <roland@mxchange.org>
25 files changed:
application/tests/class_ApplicationHelper.php
framework/main/classes/commands/class_BaseCommand.php
framework/main/classes/commands/html/class_HtmlConfirmCommand.php
framework/main/classes/commands/html/class_HtmlHomeCommand.php
framework/main/classes/commands/html/class_HtmlLoginAreaCommand.php
framework/main/classes/commands/html/class_HtmlLoginCommand.php
framework/main/classes/commands/html/class_HtmlLoginFailedCommand.php
framework/main/classes/commands/html/class_HtmlLogoutDoneCommand.php
framework/main/classes/commands/html/class_HtmlRegisterCommand.php
framework/main/classes/commands/html/class_HtmlResendLinkCommand.php
framework/main/classes/commands/html/class_HtmlStatusCommand.php
framework/main/classes/decorator/template/class_XmlRewriterTemplateDecorator.php
framework/main/classes/mailer/debug/class_DebugMailer.php
framework/main/classes/resolver/action/html/class_HtmlActionResolver.php
framework/main/classes/resolver/command/console/class_ConsoleCommandResolver.php
framework/main/classes/resolver/command/html/class_HtmlCommandResolver.php
framework/main/classes/resolver/command/image/class_ImageCommandResolver.php
framework/main/classes/resolver/controller/console/class_ConsoleControllerResolver.php
framework/main/classes/resolver/controller/html/class_HtmlControllerResolver.php
framework/main/classes/resolver/controller/image/class_ImageControllerResolver.php
framework/main/classes/template/class_BaseTemplateEngine.php
framework/main/interfaces/template/class_CompileableTemplate.php
framework/main/tests/resolver/command/console/class_TestsConsoleCommandResolver.php
framework/main/tests/resolver/controller/class_TestsConsoleControllerResolver.php
index.php

index 007ed669e91123735b20ed343d3c7bd466505de6..008bda16236d71432d82befac927f74d24857e3b 100644 (file)
@@ -226,7 +226,7 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
                                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());
index 12ae3690202b6adf0741dfd8ecce9478275a718a..d38a19797de73f5a8a82fe4454ef88f42e8975ce 100644 (file)
@@ -62,7 +62,7 @@ abstract class BaseCommand extends BaseFrameworkSystem {
                $templateInstance = $this->prepareTemplateInstance($applicationInstance);
 
                // Transfer application data
-               $templateInstance->assignApplicationData($applicationInstance);
+               $templateInstance->assignApplicationData();
 
                // Assign base URL
                $templateInstance->assignConfigVariable('base_url');
index e6b3f813cf1747ebba765de45db43c135a4c6c72..5be6195f7c27b31ed04e7ba9e102a8917dc35271 100644 (file)
@@ -79,7 +79,7 @@ class HtmlConfirmCommand extends BaseCommand implements Commandable {
                $templateInstance = $this->prepareTemplateInstance($applicationInstance);
 
                // Assign application data with template engine
-               $templateInstance->assignApplicationData($applicationInstance);
+               $templateInstance->assignApplicationData();
 
                // Assign base URL
                $templateInstance->assignConfigVariable('base_url');
index ef2de9af91d518e23200af153f8e6d4178129458..4ff2855b2ae6eabb354a136b0df11e165cebd5c9 100644 (file)
@@ -77,7 +77,7 @@ class HtmlHomeCommand extends BaseCommand implements Commandable {
                $templateInstance = $this->prepareTemplateInstance($applicationInstance);
 
                // Transfer application data
-               $templateInstance->assignApplicationData($applicationInstance);
+               $templateInstance->assignApplicationData();
 
                // Load the master template
                $masterTemplate = $applicationInstance->buildMasterTemplateName();
index 3437798d78fe2c781269c98ebd356a3bd3743cb7..a7aad82e316d7a0256f3ecbf468650f82792c38d 100644 (file)
@@ -107,7 +107,7 @@ class HtmlLoginAreaCommand extends BaseCommand implements Commandable {
                $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();
@@ -196,11 +196,8 @@ class HtmlLoginAreaCommand extends BaseCommand implements Commandable {
                        $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();
index 4b5f017a23ff09252ec5718ee60d76cf636a8fb3..aa0d9d829d3bf52d67b084c99a0ae0319defb07a 100644 (file)
@@ -80,7 +80,7 @@ class HtmlLoginCommand extends BaseCommand implements Commandable {
                $templateInstance = $this->prepareTemplateInstance($applicationInstance);
 
                // Assign application data with template engine
-               $templateInstance->assignApplicationData($applicationInstance);
+               $templateInstance->assignApplicationData();
 
                // Assign base URL
                $templateInstance->assignConfigVariable('base_url');
index 3b19b20e22ec13d3f1de6be8b3b4cb5ba2e8bd0c..31f8babade272f628a5ee28759fc9ac08ec05345 100644 (file)
@@ -77,7 +77,7 @@ class HtmlLoginFailedCommand extends BaseCommand implements Commandable {
                $templateInstance = $this->prepareTemplateInstance($applicationInstance);
 
                // Assign application data with template engine
-               $templateInstance->assignApplicationData($applicationInstance);
+               $templateInstance->assignApplicationData();
 
                // Load the master template
                $masterTemplate = $applicationInstance->buildMasterTemplateName();
index 0ed610172be4cb4fbd298b43a80f3f2e8a0d0f7c..603974ccbb284e6669250769a731c6a9558fd3fb 100644 (file)
@@ -77,7 +77,7 @@ class HtmlLogoutDoneCommand extends BaseCommand implements Commandable {
                $templateInstance = $this->prepareTemplateInstance($applicationInstance);
 
                // Assign application data
-               $templateInstance->assignApplicationData($applicationInstance);
+               $templateInstance->assignApplicationData();
 
                // Load the master template
                $masterTemplate = $applicationInstance->buildMasterTemplateName();
index 98bd6edce4386dd2ae72b0a5d1c61362135d3994..18e7155f469d2f08b94a217e0030fd490ff46407 100644 (file)
@@ -80,7 +80,7 @@ class HtmlRegisterCommand extends BaseCommand implements Commandable {
                $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');
index d0e558e8df44b085c991c05f1db24c8d4c5ac30c..9148524285557bd65258fb35bd9b498c7ab3380d 100644 (file)
@@ -99,10 +99,10 @@ class HtmlResendLinkCommand extends BaseCommand implements Commandable {
                $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);
index 3bcadda679391250a6348d8c4ee29432274c7e6d..e6d4e39eeda866271cb2bf4be19613a9054f7d64 100644 (file)
@@ -77,7 +77,7 @@ class HtmlStatusCommand extends BaseCommand implements Commandable {
                $templateInstance = $this->prepareTemplateInstance($applicationInstance);
 
                // Transfer application data
-               $templateInstance->assignApplicationData($applicationInstance);
+               $templateInstance->assignApplicationData();
 
                // Load the master template
                $masterTemplate = $applicationInstance->buildMasterTemplateName();
index 4325fffc8a2a5934459adf92caf94ecae9d4e577..e1467317938be0aa7d1574dde5c49cc179a311cc 100644 (file)
@@ -4,7 +4,6 @@ namespace Org\Mxchange\CoreFramework\Template\Xml;
 
 // 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;
 
@@ -274,12 +273,11 @@ class XmlRewriterTemplateDecorator extends BaseDecorator implements CompileableT
        /**
         * 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();
        }
 
        /**
index 40b67c6cbaccd05323daa19e8b25cb306494831a..876f32306e94134b0b65f5ee93f739bc861d2b9d 100644 (file)
@@ -8,7 +8,6 @@ use Org\Mxchange\CoreFramework\Generic\NullPointerException;
 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;
 
@@ -54,7 +53,7 @@ class DebugMailer extends BaseMailer implements DeliverableMail {
         * @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();
 
index ee1d601cce04aff607c626f77038a113f1809aca..05b498df5c4efdba11eaabc74a5b5283dbde6cd0 100644 (file)
@@ -3,7 +3,6 @@
 namespace Org\Mxchange\CoreFramework\Resolver\Action;
 
 // Import framework stuff
-use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 
 // Import SPL stuff
@@ -54,12 +53,11 @@ class HtmlActionResolver extends BaseActionResolver implements ActionResolver {
         * 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();
 
index 191f6d59489e6ae2bd84900c121a2068d76e946e..2fb6e0fca84f824d753598c2ede1662db7dafa26 100644 (file)
@@ -5,7 +5,6 @@ namespace Org\Mxchange\CoreFramework\Resolver\Command;
 // 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
@@ -51,12 +50,11 @@ class ConsoleCommandResolver extends BaseCommandResolver implements CommandResol
         * 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();
 
index 93c04fe2608eb2bc2971b96bf3236d13c8147b7a..e73ddc0be369e3bcdb972d519aa43a15bee0bb8b 100644 (file)
@@ -4,7 +4,6 @@ namespace Org\Mxchange\CoreFramework\Resolver\Command;
 
 // 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
@@ -55,12 +54,11 @@ class HtmlCommandResolver extends BaseCommandResolver implements CommandResolver
         * 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();
 
index a041d1d8b9866302891e60c6e0169dbf0f8f991f..6b1b449b67ddd35a6efa70be0e41e0bfd9372d89 100644 (file)
@@ -54,12 +54,11 @@ class ImageCommandResolver extends BaseCommandResolver implements CommandResolve
         * 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();
 
index d8db5dc32c77ef2840bfb100e76f886f867e26a4..eccd32d8b677846d943a0e212ccb6a79a50e46e8 100644 (file)
@@ -4,7 +4,6 @@ namespace Org\Mxchange\CoreFramework\Resolver\Controller;
 
 // 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;
 
@@ -52,12 +51,11 @@ class ConsoleControllerResolver extends BaseControllerResolver implements Contro
         *
         * @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();
 
index 19189506172eedb80916c7f13e40cf8a925f142e..ae556aa6e96f32cff4dad1292fe8106b35c5977a 100644 (file)
@@ -4,7 +4,6 @@ namespace Org\Mxchange\CoreFramework\Resolver\Controller;
 
 // 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;
 
@@ -52,12 +51,11 @@ class HtmlControllerResolver extends BaseControllerResolver implements Controlle
         *
         * @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();
 
index 91ed2ccbd5b7f9e44c46ef20bd3d3fecb6abc42a..ddd151bbb06730dd487477e3b659d1279ed28b45 100644 (file)
@@ -4,7 +4,6 @@ namespace Org\Mxchange\CoreFramework\Resolver\Controller;
 
 // 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;
 
@@ -52,12 +51,11 @@ class ImageControllerResolver extends BaseControllerResolver implements Controll
         *
         * @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();
 
index 01ff9a92ede901e7b3925676badebae3a48def26..1908e3bc9b87eef6372134402779611f29e4177a 100644 (file)
@@ -9,6 +9,7 @@ use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
 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
@@ -1212,10 +1213,12 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem {
        /**
         * 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());
 
index 480a25af022a985fbcdfed0e7d65d78af7aabfd1..db9af6e18ee470b4ab208de101ad1047214cef71 100644 (file)
@@ -4,7 +4,6 @@ namespace Org\Mxchange\CoreFramework\Template;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
-use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
@@ -138,10 +137,9 @@ interface CompileableTemplate extends FrameworkInterface {
        /**
         * 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
index 9d61d50ae534c141804af45d423417036cc94e42..925bb04e83a948a5ae193681e9631c8320edfd17 100644 (file)
@@ -4,7 +4,6 @@ namespace Org\Mxchange\CoreFramework\Tests\Resolver\Command;
 
 // 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;
 
@@ -51,12 +50,11 @@ class TestsConsoleCommandResolver extends BaseCommandResolver implements Command
         * 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();
 
index 62c254053f5dbee06efad5db48db8e0b82320a34..ed861f3506f91d250d257e982c26e95d90f63803 100644 (file)
@@ -5,7 +5,6 @@ namespace Org\Mxchange\CoreFramework\Tests\Resolver\Controller;
 // 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;
 
@@ -52,12 +51,11 @@ class TestsConsoleControllerResolver extends BaseControllerResolver implements C
         * 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();
 
index 1e7f1d48f75e9a68e0803bef7bd71d416ff24fa6..e3c5da87df742caed7a31be487ec3306d16460a3 100644 (file)
--- a/index.php
+++ b/index.php
@@ -137,7 +137,7 @@ final class ApplicationEntryPoint {
                                $applicationInstance = ApplicationHelper::getSelfInstance();
 
                                // Assign application data
-                               $templateInstance->assignApplicationData($applicationInstance);
+                               $templateInstance->assignApplicationData();
                        } // END - if
 
                        // We only try this