本文整理汇总了PHP中Actions::NewInstance方法的典型用法代码示例。如果您正苦于以下问题:PHP Actions::NewInstance方法的具体用法?PHP Actions::NewInstance怎么用?PHP Actions::NewInstance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Actions
的用法示例。
在下文中一共展示了Actions::NewInstance方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* @return void
*/
protected function __construct()
{
$this->oHttp = \MailSo\Base\Http::NewInstance();
$this->oActions = Actions::NewInstance();
$this->oActions->SetHttp($this->oHttp);
$this->oTwilio = $this->oActions->GetTwilio();
\CApi::Plugin()->SetActions($this->oActions);
// \MailSo\Config::$FixIconvByMbstring = false;
\MailSo\Config::$SystemLogger = \CApi::MailSoLogger();
}
示例2: __construct
/**
* @return void
*/
protected function __construct()
{
$this->oHttp = \MailSo\Base\Http::NewInstance();
$this->oActions = Actions::NewInstance();
$this->oActions->SetHttp($this->oHttp);
$this->oTwilio = $this->oActions->GetTwilio();
\CApi::Plugin()->SetActions($this->oActions);
// \MailSo\Config::$FixIconvByMbstring = false;
\MailSo\Config::$SystemLogger = \CApi::MailSoLogger();
\MailSo\Config::$PreferStartTlsIfAutoDetect = !!\CApi::GetConf('labs.prefer-starttls', true);
}
示例3: __construct
/**
* @return void
*/
private function __construct()
{
$this->oHttp = \MailSo\Base\Http::SingletonInstance();
$this->oActions = Actions::NewInstance();
\set_error_handler(array(&$this, 'LogPhpErrorHandler'));
$this->oServiceActions = new \RainLoop\ServiceActions($this->oHttp, $this->oActions);
if ($this->oActions->Config()->Get('debug', 'enable', false)) {
\error_reporting(E_ALL);
\ini_set('display_errors', 1);
}
if ($this->oActions->Config()->Get('labs', 'disable_iconv_if_mbstring_supported', false) && \class_exists('MailSo\\Capa') && \MailSo\Base\Utils::IsMbStringSupported()) {
\MailSo\Config::$ICONV = false;
}
$sServer = \trim($this->oActions->Config()->Get('security', 'custom_server_signature', ''));
if (0 < \strlen($sServer)) {
@\header('Server: ' . $sServer, true);
}
if ($this->oActions->Config()->Get('labs', 'force_https', false) && !$this->oHttp->IsSecure()) {
@\header('Location: https://' . $this->oHttp->GetHost(false, false) . $this->oHttp->GetUrl(), true);
exit;
}
}