mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Compare commits
4 Commits
9f8e3790f4
...
434475c214
Author | SHA1 | Date | |
---|---|---|---|
|
434475c214 | ||
|
a81b7855de | ||
|
e93dafb2fe | ||
|
9581025e6c |
@ -4,6 +4,7 @@ namespace SilverStripe\Logging;
|
||||
|
||||
use Monolog\Formatter\FormatterInterface;
|
||||
use Monolog\Handler\AbstractProcessingHandler;
|
||||
use Monolog\Level;
|
||||
use Monolog\LogRecord;
|
||||
use SilverStripe\Control\Controller;
|
||||
use SilverStripe\Control\Director;
|
||||
@ -34,9 +35,9 @@ class HTTPOutputHandler extends AbstractProcessingHandler
|
||||
*/
|
||||
private $cliFormatter = null;
|
||||
|
||||
public function __construct()
|
||||
public function __construct(int|string|Level $level = Level::Debug, bool $bubble = true)
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct($level, $bubble);
|
||||
Deprecation::withSuppressedNotice(function () {
|
||||
Deprecation::notice(
|
||||
'5.4.0',
|
||||
|
@ -678,9 +678,13 @@ class ViewableData implements IteratorAggregate
|
||||
* access to itself.
|
||||
*
|
||||
* @return ViewableData
|
||||
* @deprecated 5.3.0 Will be replaced with special handling in templates.
|
||||
*/
|
||||
public function Me()
|
||||
{
|
||||
Deprecation::withNoReplacement(
|
||||
fn () => Deprecation::notice('5.3.0', 'Will be replaced with special handling in templates.')
|
||||
);
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user