+ // Set this application in registry
+ Registry::getRegistry()->addInstance('app', $this);
+
+ // Analyze the environment for type of response/request
+ $type = ConsoleTools::analyzeEnvironmentForType();
+ $classType = ConsoleTools::analyzeEnvironmentForClassType();
+