diff --git a/src/Forms/AWRequiredFields.php b/src/Forms/AWRequiredFields.php index 903a8ad1..5da774d4 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 @@ -12,11 +13,20 @@ * @author Russell Michell russell@silverstripe.com * @package advancedworkflow */ -class AWRequiredFields extends RequiredFields +class AWRequiredFieldsValidator extends RequiredFields { protected $data = array(); protected static $caller; + /** + * @deprecated 5.4.0 Will be renamed to Symbiote\AdvancedWorkflow\Forms\AWRequiredFieldsValidator + */ + public function __construct() + { + Deprecation::noticeWithNoReplacment('5.4.0', 'Will be renamed to Symbiote\\AdvancedWorkflow\\Forms\\AWRequiredFieldsValidator', Deprecation::SCOPE_CLASS); + parent::__construct(); + } + public function php($data) { $valid = parent::php($data);