diff --git a/scripts/__init_env__.php b/scripts/__init_env__.php index f3d97847dc..8bdedcf92a 100644 --- a/scripts/__init_env__.php +++ b/scripts/__init_env__.php @@ -42,8 +42,10 @@ foreach (PhabricatorEnv::getEnvConfig('load-libraries') as $library) { } PhutilErrorHandler::initialize(); +PhabricatorEventEngine::initialize(); $tz = PhabricatorEnv::getEnvConfig('phabricator.timezone'); if ($tz) { date_default_timezone_set($tz); } + diff --git a/scripts/__init_script__.php b/scripts/__init_script__.php index 49b7f82ce1..ba3c9562ae 100644 --- a/scripts/__init_script__.php +++ b/scripts/__init_script__.php @@ -33,4 +33,3 @@ phutil_load_library(dirname(__FILE__).'/../src/'); // NOTE: This is dangerous in general, but we know we're in a script context and // are not vulnerable to CSRF. AphrontWriteGuard::allowDangerousUnguardedWrites(true); -PhabricatorEventEngine::initialize();