Пример #1
0
 public function shutdown()
 {
     $f3 = \Base::instance();
     // @todo handle different shutdown for cli / web
     self::function_debug(__CLASS__, __FUNCTION__);
     self::dump_errors();
     cli::release_lockfile();
     My::info(self::$exit_code == 0 ? "Script exited successfully" : "Script exited with errors");
     exit(self::$exit_code);
 }