drupal-console icon indicating copy to clipboard operation
drupal-console copied to clipboard

fix non-existent service extension.list.module

Open nicoschi opened this issue 3 years ago • 1 comments

Fixes #4265

nicoschi avatar Oct 25 '20 19:10 nicoschi

Looks like this code is already included in the latest release 1.9.8, around line 254 now:

    /**
     * @param string $type
     * @return \Drupal\Core\Extension\Extension[]
     */
    private function discoverExtensions($type)
    {
        if ($type === 'module') {
            $this->site->loadLegacyFile('/core/modules/system/system.module');
            $extensionList = \Drupal::service('extension.list.module');
            $extensionList->reset()->getList();
        }

ccjjmartin avatar Apr 28 '22 15:04 ccjjmartin

@ccjjmartin no, it is not: https://github.com/hechoendrupal/drupal-console/blob/1.9.8/src/Extension/Manager.php#L249 And now this PR is not compatible with version 1.9.8 anymore, so I cannot even apply the patch from this PR.

lisotton avatar Sep 14 '22 12:09 lisotton

I merged here https://github.com/hechoendrupal/drupal-console/pull/4340

LOBsTerr avatar Sep 16 '22 15:09 LOBsTerr