private function _translate($text) { $translate = $text; if (defined('APP_TRANSLATE')) { $translate = Translations::get($text, APP_TRANSLATE); } return $translate; }
public static function run() { try { Paths::init(); Reader::get('app'); if (!defined('DEV_SHOWERRORS')) { define('DEV_SHOWERRORS', false); } if (!defined('APP_KEY')) { define('APP_KEY', 'e77393ef-c24b-4ff5-81f7-ed9fa28b4fb8'); } if (!defined('APP_NAME')) { define('APP_NAME', 'sfphp'); } Translations::init(); Session::get(); new Launcher(); } catch (\Exception $err) { $errorInfo = sprintf('%s: %s in %s on line %s.', 'Error', $err, $err->getFile(), $err->getLine()); Debug::dump($errorInfo); } }