mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
ENH Don't use deprecated method (#786)
This commit is contained in:
parent
67be150898
commit
0da034c455
@ -17,7 +17,7 @@ class BlogPostFeaturedExtension extends DataExtension
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
Deprecation::withNoReplacement(function () {
|
||||
Deprecation::withSuppressedNotice(function () {
|
||||
Deprecation::notice(
|
||||
'4.3.0',
|
||||
'Will be removed without equivalent functionality to replace it',
|
||||
|
@ -76,7 +76,7 @@ class BlogArchiveWidget extends Widget
|
||||
|
||||
public function __construct($record = [], $creationType = DataObject::CREATE_OBJECT, $queryParams = [])
|
||||
{
|
||||
Deprecation::withNoReplacement(function () {
|
||||
Deprecation::withSuppressedNotice(function () {
|
||||
Deprecation::notice(
|
||||
'4.3.0',
|
||||
'Will be removed without equivalent functionality to replace it',
|
||||
|
@ -16,7 +16,7 @@ class BlogArchiveWidgetController extends WidgetController
|
||||
{
|
||||
public function __construct($widget = null)
|
||||
{
|
||||
Deprecation::withNoReplacement(function () {
|
||||
Deprecation::withSuppressedNotice(function () {
|
||||
Deprecation::notice(
|
||||
'4.3.0',
|
||||
'Will be removed without equivalent functionality to replace it',
|
||||
|
@ -61,7 +61,7 @@ class BlogCategoriesWidget extends Widget
|
||||
|
||||
public function __construct($record = [], $creationType = DataObject::CREATE_OBJECT, $queryParams = [])
|
||||
{
|
||||
Deprecation::withNoReplacement(function () {
|
||||
Deprecation::withSuppressedNotice(function () {
|
||||
Deprecation::notice(
|
||||
'4.3.0',
|
||||
'Will be removed without equivalent functionality to replace it',
|
||||
|
@ -16,7 +16,7 @@ class BlogCategoriesWidgetController extends WidgetController
|
||||
{
|
||||
public function __construct($widget = null)
|
||||
{
|
||||
Deprecation::withNoReplacement(function () {
|
||||
Deprecation::withSuppressedNotice(function () {
|
||||
Deprecation::notice(
|
||||
'4.3.0',
|
||||
'Will be removed without equivalent functionality to replace it',
|
||||
|
@ -60,7 +60,7 @@ class BlogFeaturedPostsWidget extends Widget
|
||||
|
||||
public function __construct($record = [], $creationType = DataObject::CREATE_OBJECT, $queryParams = [])
|
||||
{
|
||||
Deprecation::withNoReplacement(function () {
|
||||
Deprecation::withSuppressedNotice(function () {
|
||||
Deprecation::notice(
|
||||
'4.3.0',
|
||||
'Will be removed without equivalent functionality to replace it',
|
||||
|
@ -60,7 +60,7 @@ class BlogRecentPostsWidget extends Widget
|
||||
|
||||
public function __construct($record = [], $creationType = DataObject::CREATE_OBJECT, $queryParams = [])
|
||||
{
|
||||
Deprecation::withNoReplacement(function () {
|
||||
Deprecation::withSuppressedNotice(function () {
|
||||
Deprecation::notice(
|
||||
'4.3.0',
|
||||
'Will be removed without equivalent functionality to replace it',
|
||||
|
@ -16,7 +16,7 @@ class BlogRecentPostsWidgetController extends WidgetController
|
||||
{
|
||||
public function __construct($widget = null)
|
||||
{
|
||||
Deprecation::withNoReplacement(function () {
|
||||
Deprecation::withSuppressedNotice(function () {
|
||||
Deprecation::notice(
|
||||
'4.3.0',
|
||||
'Will be removed without equivalent functionality to replace it',
|
||||
|
@ -56,7 +56,7 @@ class BlogTagsCloudWidget extends Widget
|
||||
|
||||
public function __construct($record = [], $creationType = DataObject::CREATE_OBJECT, $queryParams = [])
|
||||
{
|
||||
Deprecation::withNoReplacement(function () {
|
||||
Deprecation::withSuppressedNotice(function () {
|
||||
Deprecation::notice(
|
||||
'4.3.0',
|
||||
'Will be removed without equivalent functionality to replace it',
|
||||
|
@ -16,7 +16,7 @@ class BlogTagsCloudWidgetController extends WidgetController
|
||||
{
|
||||
public function __construct($widget = null)
|
||||
{
|
||||
Deprecation::withNoReplacement(function () {
|
||||
Deprecation::withSuppressedNotice(function () {
|
||||
Deprecation::notice(
|
||||
'4.3.0',
|
||||
'Will be removed without equivalent functionality to replace it',
|
||||
|
@ -61,7 +61,7 @@ class BlogTagsWidget extends Widget
|
||||
|
||||
public function __construct($record = [], $creationType = DataObject::CREATE_OBJECT, $queryParams = [])
|
||||
{
|
||||
Deprecation::withNoReplacement(function () {
|
||||
Deprecation::withSuppressedNotice(function () {
|
||||
Deprecation::notice(
|
||||
'4.3.0',
|
||||
'Will be removed without equivalent functionality to replace it',
|
||||
|
@ -16,7 +16,7 @@ class BlogTagsWidgetController extends WidgetController
|
||||
{
|
||||
public function __construct($widget = null)
|
||||
{
|
||||
Deprecation::withNoReplacement(function () {
|
||||
Deprecation::withSuppressedNotice(function () {
|
||||
Deprecation::notice(
|
||||
'4.3.0',
|
||||
'Will be removed without equivalent functionality to replace it',
|
||||
|
Loading…
Reference in New Issue
Block a user