Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

Commit

Permalink
Rename LoggerHelper::getExceptionFile -> LoggerHelper::formatExceptio…
Browse files Browse the repository at this point in the history
…nFilePath
  • Loading branch information
Vrtak-CZ committed Jan 16, 2016
1 parent 5cee6b8 commit 8c95172
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/Tracy/LoggerHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function getExceptionHash($exception)
* @param DateTimeInterface $datetime
* @return string
*/
public function getExceptionFile($exception, DateTimeInterface $datetime = NULL)
public function formatExceptionFilePath($exception, DateTimeInterface $datetime = NULL)
{
if ($datetime === NULL) {
$datetime = new DateTimeImmutable();
Expand All @@ -73,6 +73,17 @@ public function getExceptionFile($exception, DateTimeInterface $datetime = NULL)
return $dir . 'exception--' . $datetime->format('Y-m-d--H-i') . '--' . $hash . '.html';
}

/**
* @deprecated
* @param \Exception|\Throwable $exception
* @param DateTimeInterface $datetime
* @return string
*/
public function getExceptionFile($exception, DateTimeInterface $datetime = NULL)
{
return $this->formatExceptionFilePath($exception, $datetime);
}

/**
* @deprecated
* @param string $message
Expand Down

0 comments on commit 8c95172

Please sign in to comment.