namespace Org\Mxchange\CoreFramework\Resolver\Action;
// Import framework stuff
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
use Org\Mxchange\CoreFramework\Request\Requestable;
// Import SPL stuff
*
* @author Roland Haeder <webmaster@shipsimu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2021 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.shipsimu.org
*
*
* @return void
*/
- protected function __construct () {
+ private function __construct () {
// Call parent constructor
parent::__construct(__CLASS__);
// Is the action empty? Then fall back to default action
if (empty($actionName)) {
- $actionName = $this->getConfigInstance()->getConfigEntry('default_action');
- } // END - if
+ $actionName = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('default_action');
+ }
// Check if action is valid
if ($this->isActionValid($actionName) === false) {
// This action is invalid!
throw new InvalidActionException(array($this, $actionName), self::EXCEPTION_INVALID_ACTION);
- } // END - if
+ }
// Get the action
$actionInstance = $this->loadAction();
if ((!is_object($actionInstance)) || (!$actionInstance instanceof Actionable)) {
// This action has an invalid instance!
throw new InvalidActionInstanceException(array($this, $actionName), self::EXCEPTION_INVALID_ACTION);
- } // END - if
+ }
// Set last action
$this->setResolvedInstance($actionInstance);
// Is the action empty? Then fall back to default action
if (empty($actionName)) {
- $actionName = $this->getConfigInstance()->getConfigEntry('default_action');
- } // END - if
+ $actionName = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('default_action');
+ }
// Check if action is valid
if ($this->isActionValid($actionName) === false) {
// This action is invalid!
throw new InvalidActionException(array($this, $actionName), self::EXCEPTION_INVALID_ACTION);
- } // END - if
+ }
// Get the action
$actionInstance = $this->loadAction();