X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fcommands%2Fconsole%2Fclass_ConsoleFuseCommand.php;h=c8061ffcc295b9766e2911fe23d6ad28c1e602c2;hb=refs%2Fheads%2Fmaster;hp=523c016c16c90b459c8f52e706f8119d8e6fe0d7;hpb=adcdfc000eba8fac128786adcb8cb480085e7e76;p=core.git diff --git a/framework/main/classes/commands/console/class_ConsoleFuseCommand.php b/framework/main/classes/commands/console/class_ConsoleFuseCommand.php index 523c016c..47b755a2 100644 --- a/framework/main/classes/commands/console/class_ConsoleFuseCommand.php +++ b/framework/main/classes/commands/console/class_ConsoleFuseCommand.php @@ -7,6 +7,7 @@ use Org\Mxchange\CoreFramework\Command\BaseCommand; use Org\Mxchange\CoreFramework\Command\Commandable; use Org\Mxchange\CoreFramework\Controller\Controller; use Org\Mxchange\CoreFramework\Feature\FrameworkFeature; +use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware; use Org\Mxchange\CoreFramework\Request\Requestable; use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver; use Org\Mxchange\CoreFramework\Response\Responseable; @@ -16,7 +17,7 @@ use Org\Mxchange\CoreFramework\Response\Responseable; * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2020 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2023 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -39,7 +40,7 @@ class ConsoleFuseCommand extends BaseCommand implements Commandable { * * @return void */ - protected function __construct () { + private function __construct () { // Call parent constructor parent::__construct(__CLASS__); } @@ -50,7 +51,7 @@ class ConsoleFuseCommand extends BaseCommand implements Commandable { * @param $resolverInstance An instance of a command resolver class * @return $commandInstance An instance a prepared command class */ - public final static function createConsoleFuseCommand (CommandResolver $resolverInstance) { + public final static function createConsoleFuseCommand (CommandResolver $resolverInstance): Commandable { // Get new instance $commandInstance = new ConsoleFuseCommand(); @@ -68,7 +69,7 @@ class ConsoleFuseCommand extends BaseCommand implements Commandable { * @param $responseInstance An instance of a class with an Responseable interface * @return void */ - public function execute (Requestable $requestInstance, Responseable $responseInstance) { + public function execute (Requestable $requestInstance, Responseable $responseInstance): void { // Is the feature available? if (!FrameworkFeature::isFeatureAvailable('fuse')) { // Feature not available, cannot continue @@ -79,10 +80,10 @@ class ConsoleFuseCommand extends BaseCommand implements Commandable { // Abort here return; - } // END - if + } // @TODO Unfinished - $this->partialStub('Still unfinished! ;-)'); + DebugMiddleware::getSelfInstance()->partialStub('Still unfinished! ;-)'); } /** @@ -92,7 +93,7 @@ class ConsoleFuseCommand extends BaseCommand implements Commandable { * @param $requestInstance An instance of a class with an Requestable interface * @return void */ - public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) { + public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void { // Empty for now ... }