Update to work with latest Domain dev version

Created on 8 September 2022, over 2 years ago
Updated 13 March 2023, almost 2 years ago

When updating Domain module to latest dev version in my project, all drush commands generate errors because of the country_path module:

PHP Fatal error: Uncaught Error: Class 'Drupal\domain\DomainForm' not found in /app/web/modules/contrib/country_path/src/CountryPathDomainForm.php:13

PHP Fatal error: Uncaught Error: Class 'Drupal\domain_alias\DomainAliasForm' not found in /app/web/modules/contrib/country_path/src/CountryPathDomainAliasForm.php:13

It is because the namespace of those forms is changed in the Domain module.

use Drupal\domain\DomainForm;
should become:
use Drupal\domain\Form\DomainForm;

and
use Drupal\domain_alias\DomainAliasForm;
should become:
use Drupal\domain_alias\Form\DomainAliasForm;

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium flyke

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024