]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/commands/web/government/class_WebShipsimuGovernmentTrainingCommand.php
Missing class/config entries added, execeute() implemented, some rewrites:
[shipsimu.git] / application / ship-simu / main / commands / web / government / class_WebShipsimuGovernmentTrainingCommand.php
index a399674deb9ce269d8f5ee254b3bb2bb05fad318..a5ec956022d7527be5b86ff577fb70ddf906f77e 100644 (file)
@@ -57,7 +57,11 @@ class WebShipsimuGovernmentTrainingCommand extends BaseCommand implements Comman
         * @todo        0% done
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
-               $this->partialStub('Unfinished method.');
+               // Get a wrapper instance
+               $wrapperInstance = ObjectFactory::createObjectByConfiguredName('user_gov_wrapper_class');
+
+               // Register the training
+               $wrapperInstance->registerTrainingByRequest($requestInstance);
        }
 
        /**