Skip to content

Commit

Permalink
API Deprecate extension to be replaced with config (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Aug 22, 2024
1 parent 4c3f520 commit 9453721
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Extensions/ShareDraftContentRequirementsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,24 @@
namespace SilverStripe\ShareDraftContent\Extensions;

use SilverStripe\CMS\Controllers\CMSMain;
use SilverStripe\Dev\Deprecation;
use SilverStripe\ORM\DataExtension;
use SilverStripe\View\Requirements;

/**
* @extends DataExtension<CMSMain>
* @deprecated 5.3.0 Will be replaced with YAML configuration
*/
class ShareDraftContentRequirementsExtension extends DataExtension
{
public function __construct()
{
Deprecation::withNoReplacement(
fn () => Deprecation::notice('5.3.0', 'Will be replaced with YAML configuration', Deprecation::SCOPE_CLASS)
);
parent::__construct();
}

public function init()
{
Requirements::css('silverstripe/sharedraftcontent: client/dist/styles/bundle-cms.css');
Expand Down

0 comments on commit 9453721

Please sign in to comment.