/** * Returns the instance of this class. * * @param boolean $autoStart Whether the application should be started automatically * when this method is called the first time. If this parameter is set to false, an * application needs to call the start method explicit. * @return Erfurt_App */ public static function getInstance($autoStart = true) { if (null === self::$_instance) { self::$_instance = new Erfurt_App(); if ($autoStart === true) { self::$_instance->start(); } } return self::$_instance; }