namespace Org\Mxchange\CoreFramework\Helper\Application;
// Import framework stuff
+use Org\Mxchange\CoreFramework\Application\BaseApplication;
use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
use Org\Mxchange\CoreFramework\Loader\ClassLoader;
use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
-use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
use Org\Mxchange\CoreFramework\Registry\Registerable;
use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplication, Registerable {
+class ApplicationHelper extends BaseApplication implements ManageableApplication, Registerable {
/**
* The version number of this application
*/
*/
public function outputConsoleTeaser () {
// Get the app instance (for shortening our code)
- $app = $this->getApplicationInstance();
+ $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
// Output all lines
self::createDebugInstance(__CLASS__)->debugOutput(' ');
- self::createDebugInstance(__CLASS__)->debugOutput($app->getAppName() . ' v' . $app->getAppVersion() . ' - ' . FrameworkBootstrap::getRequestInstance()->getRequestElement('mode') . ' daemon starting');
+ self::createDebugInstance(__CLASS__)->debugOutput($applicationInstance->getAppName() . ' v' . $applicationInstance->getAppVersion() . ' - ' . FrameworkBootstrap::getRequestInstance()->getRequestElement('mode') . ' daemon starting');
self::createDebugInstance(__CLASS__)->debugOutput('Copyright (c) 2015, 2016 City Developer Team');
self::createDebugInstance(__CLASS__)->debugOutput(' ');
self::createDebugInstance(__CLASS__)->debugOutput('This program comes with ABSOLUTELY NO WARRANTY; for details see docs/COPYING.');
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Get the application instance
- $applicationInstance = $this->getResolverInstance()->getApplicationInstance();
+ $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
// Prepare a template instance
$templateInstance = $this->prepareTemplateInstance($applicationInstance);
} // END - if
// Get the application instance
- $applicationInstance = $this->getResolverInstance()->getApplicationInstance();
+ $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
// Prepare a template instance
$templateInstance = $this->prepareTemplateInstance($applicationInstance);
} // END - if
// Get application instance
- $applicationInstance = $this->getResolverInstance()->getApplicationInstance();
+ $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
// Get a resolver
$actionResolver = HtmlActionResolver::createHtmlActionResolver($this->actionName, $applicationInstance);
GenericRegistry::getRegistry()->addInstance('extra', $this);
// Get the application instance
- $applicationInstance = $this->getResolverInstance()->getApplicationInstance();
+ $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
// Prepare a template instance
$templateInstance = $this->prepareTemplateInstance($applicationInstance);
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Get the application instance
- $applicationInstance = $this->getResolverInstance()->getApplicationInstance();
+ $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
// Prepare a template instance
$templateInstance = $this->prepareTemplateInstance($applicationInstance);
$userInstance = GenericRegistry::getRegistry()->getInstance('user');
// Get an application instance
- $applicationInstance = $this->getResolverInstance()->getApplicationInstance();
+ $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
// Get a RNG instance (Random Number Generator)
$rngInstance = ObjectFactory::createObjectByConfiguredName('rng_class');
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Get the application instance
- $applicationInstance = $this->getResolverInstance()->getApplicationInstance();
+ $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
// Prepare a template instance
$templateInstance = $this->prepareTemplateInstance($applicationInstance);
-Subproject commit 2f930fd62f97e06a6b90afb971cce6343522f9b9
+Subproject commit e137daa3a06f4b9e3767db913854c609383e8533