*
* @author Roland Haeder <webmaster@ship-simu.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.ship-simu.org
*
*
* @return void
*/
- protected function __construct () {
+ private function __construct () {
// Call parent constructor
parent::__construct(__CLASS__);
if (empty($!!!Name)) {
// Then thrown an exception here
throw new EmptyVariableException(array($resolverInstance, 'default|||'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING);
- } elseif ($resolverInstance->is|||Valid($!!!Name) === FALSE) {
+ } elseif ($resolverInstance->is|||Valid($!!!Name) === false) {
// Invalid action found
throw new Invalid|||Exception(array($resolverInstance, $!!!Name), self::EXCEPTION_INVALID_ACTION);
}
$!!!Name = $requestInstance->getRequestElement('action');
// Is the action empty? Then fall back to default action
- if (empty($!!!Name)) $!!!Name = $this->getConfigInstance()->getConfigEntry('default_action');
+ if (empty($!!!Name)) $!!!Name = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('default_action');
// Check if action is valid
- if ($this->is|||Valid($!!!Name) === FALSE) {
+ if ($this->is|||Valid($!!!Name) === false) {
// This action is invalid!
throw new Invalid|||Exception(array($this, $!!!Name), self::EXCEPTION_INVALID_ACTION);
- } // END - if
+ }
// Get the action
$!!!Instance = $this->load|||();
if ((!is_object($!!!Instance)) || (!$!!!Instance instanceof |||able)) {
// This action has an invalid instance!
throw new Invalid|||InstanceException(array($this, $!!!Name), self::EXCEPTION_INVALID_ACTION);
- } // END - if
+ }
// Set last action
$this->setResolvedInstance($!!!Instance);
// Is the action empty? Then fall back to default action
if (empty($!!!Name)) {
- $!!!Name = $this->getConfigInstance()->getConfigEntry('default_action');
- } // END - if
+ $!!!Name = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('default_action');
+ }
// Check if action is valid
- if ($this->is|||Valid($!!!Name) === FALSE) {
+ if ($this->is|||Valid($!!!Name) === false) {
// This action is invalid!
throw new Invalid|||Exception(array($this, $!!!Name), self::EXCEPTION_INVALID_ACTION);
- } // END - if
+ }
// Get the action
$!!!Instance = $this->load|||();