Problem/Motivation
We have some classes that extend DevelGenerateBase from devel module.
(especially LanguageDevelGenerate)
These classes are currently not aligned with the base class, causing tests to error out.
Also, LanguageDevelGenerate currently gets an entity storage in the constructor.
This is generally considered bad practice, it is better to simply store entity type manager as a property and then get a storage when it is needed, to avoid unnecessary computation in the constructor.
Steps to reproduce
Proposed resolution
Require (dev) drupal/devel.
Align classes with the base class DevelGenerateBase so they don't break Liskov.
Remove the entity storage property LanguageDevelGenerate->languageStorage. Retrieve the storage when it is needed. (as consequence we no longer need to override the parent __construct() and ::create().)
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork l10n_server-3553113
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
donquixote commentedComment #8
fmb commentedWell, that would be better than breaking half of the Internet, right? Sorry, actually AWS and DNS are already taking care of this.
Anyway, thanks for your work on these issues!