Running Task Email Address Task

GET /dev/tasks/Dynamic-Locator-Tasks-EmailAddressTask

[Emergency] Uncaught Error: Class 'Dynamic\Locator\Tasks\Config' not found

GET /dev/tasks/Dynamic-Locator-Tasks-EmailAddressTask

Line 14 in /srv/users/serverpilot/apps/pagebuildr/public/vendor/dynamic/silverstripe-locator/tasks/EmailAddressTask.php

Source

5 use SilverStripe\Dev\BuildTask;
6 
7 class EmailAddressTask extends BuildTask
8 {
9     protected $title = 'Email Address Task'; // title of the script
10     protected $description = "Convert depreciated 'Email Address' field to new 'Email' field."; // description of what it does
11 
12     public function run($request)
13     {
14         Config::inst()->update('DataObject', 'validation_enabled', false);
15         $ct = 0;
16         $updateEmail = function ($location) use (&$ct) {
17             if (!$location->Email && $location->EmailAddress) {
18                 $location->Email = $location->EmailAddress;
19                 $location->write();
20                 ++$ct;

Trace