Skip to content

Commit

Permalink
Merge pull request #259 from creative-commoners/pulls/1/deprecated
Browse files Browse the repository at this point in the history
API Update deprecations
  • Loading branch information
GuySartorelli authored Oct 24, 2022
2 parents 43e1333 + e127b51 commit 20e01fc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
12 changes: 11 additions & 1 deletion src/Controllers/HistoryControllerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace SilverStripe\VersionedAdmin\Controllers;

use SilverStripe\Dev\Deprecation;
use SilverStripe\CMS\Controllers\CMSPageHistoryController;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Control\HTTPRequest;
Expand All @@ -14,12 +15,21 @@
* The history controller factory decides which CMS history controller to use, out of the default from the
* silverstripe/cms module or the history viewer controller from this module, depending on the current page type
*
* @deprecated 1.1.0:2.0.0
* @deprecated 1.1.0 Will be removed without equivalent functionality to replace it
*/
class HistoryControllerFactory implements Factory
{
use Extensible;

public function __construct()
{
Deprecation::notice(
'1.1.0',
'Will be removed without equivalent functionality to replace it',
Deprecation::SCOPE_CLASS
);
}

public function create($service, array $params = array())
{
// If no request is available yet, return the default controller
Expand Down
12 changes: 11 additions & 1 deletion src/Extensions/CMSMainExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,23 @@

namespace SilverStripe\VersionedAdmin\Extensions;

use SilverStripe\Dev\Deprecation;
use SilverStripe\Core\Extension;

/**
* @deprecated 1.2.0 This extension no longer serves a purpose. Write a standalone extensions instead.
* @deprecated 1.2.0 Will be removed without equivalent functionality to replace it
*/
class CMSMainExtension extends Extension
{
public function __construct()
{
Deprecation::notice(
'1.2.0',
'Will be removed without equivalent functionality to replace it',
Deprecation::SCOPE_CLASS
);
}

public function init()
{
}
Expand Down

0 comments on commit 20e01fc

Please sign in to comment.