joomla/joomla-platform — pull request #1232 by florianv (2012-05-30 14:17:22+00:00)
Title: Modified JFactory::getApplication to allow instanciating web or cli applications

JFactory::getApplication('MyWebApp', 'web')
JFactory::getApplication('MyCliApp', 'cli')