]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/commands/web/class_WebShipsimuRegisterCommand.php
Registry introduces, comments fixed ;)
[shipsimu.git] / application / ship-simu / main / commands / web / class_WebShipsimuRegisterCommand.php
index 86b95269e349f59599f06bcadd91a114e98e167a..a419393fb379cc4b97305fd579662c0bb39b63c7 100644 (file)
@@ -23,7 +23,7 @@
  */
 class WebShipsimuRegisterCommand extends BaseCommand implements Commandable {
        /**
-        * Private constructor
+        * Protected constructor
         *
         * @return      void
         */
@@ -59,7 +59,8 @@ class WebShipsimuRegisterCommand extends BaseCommand implements Commandable {
                $controllerInstance = $resolverInstance->getControllerInstance();
 
                // @TODO Add some more pre/post filters to the controller
-               $controllerInstance->addPreFilter(ObjectFactory::createObjectByName('UserNameValidatorFilter'));
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('username_validator'));
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('email_validator'));
 
                // Return the prepared instance
                return $commandInstance;