Compare commits

...

4 Commits

Author SHA1 Message Date
Guy Sartorelli
434475c214
Merge 9581025e6c1d6093153e6c1a54b6e7505ba81caa into a81b7855de814be8c3e4fb1c9341e2c507f34b6b 2024-09-25 00:33:27 +12:00
Guy Sartorelli
a81b7855de
Merge pull request #11393 from creative-commoners/pulls/5/fix-constructor
FIX Use correct contructor for HTTPOutputHandler
2024-09-24 09:35:35 +12:00
Steve Boyd
e93dafb2fe FIX Use correct contructor for HTTPOutputHandler 2024-09-19 17:21:12 +12:00
Guy Sartorelli
9581025e6c
API Deprecate ViewableData::Me() 2024-05-17 14:20:55 +12:00
2 changed files with 7 additions and 2 deletions

View File

@ -4,6 +4,7 @@ namespace SilverStripe\Logging;
use Monolog\Formatter\FormatterInterface; use Monolog\Formatter\FormatterInterface;
use Monolog\Handler\AbstractProcessingHandler; use Monolog\Handler\AbstractProcessingHandler;
use Monolog\Level;
use Monolog\LogRecord; use Monolog\LogRecord;
use SilverStripe\Control\Controller; use SilverStripe\Control\Controller;
use SilverStripe\Control\Director; use SilverStripe\Control\Director;
@ -34,9 +35,9 @@ class HTTPOutputHandler extends AbstractProcessingHandler
*/ */
private $cliFormatter = null; 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::withSuppressedNotice(function () {
Deprecation::notice( Deprecation::notice(
'5.4.0', '5.4.0',

View File

@ -678,9 +678,13 @@ class ViewableData implements IteratorAggregate
* access to itself. * access to itself.
* *
* @return ViewableData * @return ViewableData
* @deprecated 5.3.0 Will be replaced with special handling in templates.
*/ */
public function Me() public function Me()
{ {
Deprecation::withNoReplacement(
fn () => Deprecation::notice('5.3.0', 'Will be replaced with special handling in templates.')
);
return $this; return $this;
} }