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:
@@ -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);
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user