public function createApplication($config, $factory) { $request = $factory->getInstance('request'); $response = $factory->getInstance('response'); $application = new WindCommandApplication($request, $response, $factory); $application->setConfig($config); return $application; }