Compare commits

..

2 Commits

Author SHA1 Message Date
Guy Sartorelli
6645d18725
Merge 87f4e9184e into df82162291 2024-10-21 01:29:02 +00:00
Guy Sartorelli
87f4e9184e
API Deprecations for template layer 2024-10-21 14:28:53 +13:00
2 changed files with 2 additions and 5 deletions

View File

@ -301,9 +301,7 @@ class ContentController extends Controller
*/
public function Menu($level)
{
Deprecation::withSuppressedNotice(
fn() => Deprecation::notice('5.4.0', 'Use getMenu() instead. You can continue to use $Menu in templates.')
);
Deprecation::noticeWithNoReplacment('5.4.0', 'Use getMenu() instead. You can continue to use $Menu in templates.');
return $this->getMenu($level);
}

View File

@ -8,7 +8,6 @@ use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Control\Director;
use SilverStripe\Control\HTTPResponse_Exception;
use SilverStripe\Core\Config\Config;
use SilverStripe\Dev\Deprecation;
use SilverStripe\Dev\FunctionalTest;
use SilverStripe\Versioned\Versioned;
@ -205,7 +204,7 @@ class ContentControllerTest extends FunctionalTest
__DIR__
. '/themes/controllertest/templates/SilverStripe/CMS/Tests/Controllers/'
. 'ContentControllerTestPage_test.ss',
Deprecation::withSuppressedNotice(fn() => $viewer->templates())['main']
$viewer->templates()['main']
);
});
}