diff --git a/src/Forms/AWRequiredFields.php b/src/Forms/AWRequiredFields.php index 903a8ad1..e0e7af1b 100644 --- a/src/Forms/AWRequiredFields.php +++ b/src/Forms/AWRequiredFields.php @@ -3,6 +3,7 @@ namespace Symbiote\AdvancedWorkflow\Forms; use SilverStripe\Forms\RequiredFields; +use SilverStripe\Dev\Deprecation; /** * Extends RequiredFields so we can prevent DO writes in AW's controller(s) without needing to catch Exceptions @@ -17,6 +18,16 @@ class AWRequiredFields extends RequiredFields protected $data = array(); protected static $caller; + /** + * @deprecated 5.4.0 Will be renamed to Symbiote\AdvancedWorkflow\Forms\AWRequiredFieldsValidator + */ + public function __construct() + { + $message = 'Will be renamed to Symbiote\\AdvancedWorkflow\\Forms\\AWRequiredFieldsValidator'; + Deprecation::noticeWithNoReplacment('5.4.0', $message, Deprecation::SCOPE_CLASS); + parent::__construct(...func_get_args()); + } + public function php($data) { $valid = parent::php($data);