Use PhabricatorEnv::newObjectFromConfig() wherever possible

Test Plan:
/mail/send/
scripts/aphront/aphrontpath.php /

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D1983
This commit is contained in:
vrana
2012-03-21 14:48:58 -07:00
parent 74cc558ed8
commit 4fba549a99
16 changed files with 23 additions and 35 deletions

View File

@@ -206,9 +206,8 @@ final class PhabricatorOAuthLoginController
return id(new AphrontDialogResponse())->setDialog($dialog);
}
$class = PhabricatorEnv::getEnvConfig('controller.oauth-registration');
PhutilSymbolLoader::loadClass($class);
$controller = newv($class, array($this->getRequest()));
$key = 'controller.oauth-registration';
$controller = PhabricatorEnv::newObjectFromConfig($key);
$controller->setOAuthProvider($provider);
$controller->setOAuthInfo($oauth_info);

View File

@@ -20,7 +20,6 @@ phutil_require_module('phabricator', 'view/dialog');
phutil_require_module('phutil', 'markup');
phutil_require_module('phutil', 'parser/uri');
phutil_require_module('phutil', 'symbols');
phutil_require_module('phutil', 'utils');