namespace Org\Mxchange\City\Resolver\Command;
// Import framework stuff
-use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
use Org\Mxchange\CoreFramework\Resolver\Command\BaseCommandResolver;
use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
* Creates an instance of a CityConsole command resolver with a given default command
*
* @param $commandName The default command we shall execute
- * @param $applicationInstance An instance of a manageable application helper class
* @return $resolverInstance The prepared command resolver instance
* @throws EmptyVariableException Thrown if default command is not set
* @throws InvalidCommandException Thrown if default command is invalid
*/
- public static final function createCityConsoleCommandResolver ($commandName, ManageableApplication $applicationInstance) {
+ public static final function createCityConsoleCommandResolver ($commandName) {
// Create the new instance
$resolverInstance = new CityConsoleCommandResolver();
throw new InvalidCommandException(array($resolverInstance, $commandName), self::EXCEPTION_INVALID_COMMAND);
}
- // Set namespace and application instance
+ // Set namespace
$resolverInstance->setNamespace('Org\Mxchange\City\Command');
- $resolverInstance->setApplicationInstance($applicationInstance);
// Return the prepared instance
return $resolverInstance;
}
+
}