Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Deprecate API that will be removed #887

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/Task/ConvertTranslatableTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use SilverStripe\Core\Convert;
use SilverStripe\Dev\BuildTask;
use SilverStripe\Dev\Debug;
use SilverStripe\Dev\Deprecation;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DB;
use SilverStripe\ORM\Queries\SQLSelect;
Expand All @@ -31,6 +32,8 @@
* 3. Log into the CMS and set up the locales you want to use
* 4. Back up your DB again
* 5. Log into the CMS and check everything
*
* @deprecated 7.3.0 Will be removed without equivalent functionality to replace it
*/
class ConvertTranslatableTask extends BuildTask
{
Expand All @@ -40,6 +43,18 @@ class ConvertTranslatableTask extends BuildTask

private static $segment = 'ConvertTranslatableTask';

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

/**
* Checks that fluent is configured correctly
*
Expand Down
17 changes: 16 additions & 1 deletion src/Task/ConvertTranslatableTask/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,22 @@

namespace TractorCow\Fluent\Task\ConvertTranslatableTask;

use SilverStripe\Dev\Deprecation;

/**
* @deprecated 7.3.0 Will be removed without equivalent functionality to replace it
*/
class Exception extends \Exception
{

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