本文整理汇总了PHP中Tracy\Debugger::email方法的典型用法代码示例。如果您正苦于以下问题:PHP Debugger::email方法的具体用法?PHP Debugger::email怎么用?PHP Debugger::email使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tracy\Debugger
的用法示例。
在下文中一共展示了Debugger::email方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setEmailAddress
/**
* @param $email
* @param bool $enableEmailing
* @return $this
*/
public function setEmailAddress($email, $enableEmailing = false)
{
if ($enableEmailing == true) {
Debugger::$email = $email;
}
return $this;
}
示例2: configDebugging
/**
* Configures debugging for inKWell
*
* @access private
* @return void
*/
private function configDebugging($config)
{
if (isset($config['error_level'])) {
error_reporting($config['error_level']);
}
//
// Return pretty much immediatley if we're on CLI
//
if (App\Core::checkSAPI('cli')) {
ini_set('display_errors', 1);
return;
}
if ($this->checkExecutionMode(EXEC_MODE_DEVELOPMENT)) {
$display_errors = TRUE;
} else {
$display_errors = FALSE;
}
$display_errors = isset($config['display_errors']) ? $config['display_errors'] : $display_errors;
if ($display_errors) {
ini_set('display_errors', 1);
if (class_exists('Tracy\\Debugger')) {
Debugger::enable(Debugger::DEVELOPMENT, $this->getWriteDirectory('logs'));
} else {
App\Core::enableErrorHandling('html');
App\Core::enableExceptionHandling('html', 'time');
}
} else {
ini_set('display_errors', 0);
if (isset($config['error_email_to'])) {
if (class_exists('Tracy\\Debugger')) {
Debugger::enable(Debugger::PRODUCTION, $this->getWriteDirectory('logs'));
Debugger::$email = $config['error_email_to'];
} else {
App\Core::enableErrorHandling($config['error_email_to']);
App\Core::enableExceptionHandling($config['error_email_to'], 'time');
}
}
}
}
示例3: setEmailAddress
/**
* @param $email
* @param bool $hasEmail
* @return $this
*/
public function setEmailAddress($email, $hasEmail = false)
{
if ($hasEmail) {
Debugger::$email = $email;
}
return $this;
}
示例4: boot
public function boot()
{
Debugger::$logDirectory = $this->container->getParameter('kutny_tracy.exceptions_directory');
Debugger::$email = $this->container->getParameter('kutny_tracy.emails');
}
示例5: setEmailAddress
/**
* Set email address for sending error report.
*
* @param $email
* @param bool $errorEmailing
*
* @return $this
*/
public function setEmailAddress($email, $errorEmailing = false)
{
if ($errorEmailing) {
Debugger::$email = $email;
}
return $this;
}