Skip to content

Conversation

frodri
Copy link

@frodri frodri commented Jul 31, 2019

Problem/Motivation

Generated commands on an install profile are unable to run due to the DrupalCommand failing whenever $extension_type is set to "profile".

How to reproduce

  • Drupal version: 8.7.1
  • Console version: 1.8.0
  • Create a custom installation profile and install it on a site.
  • Generate a new Drupal Console command. (drupal gco --extension="my-new-profile" --extension-type="profile" --class="DefaultCommand" --name="DefaultCommandName")
  • Run the command.

Solution

  • Change Drupal\Console\Extension\Manager to properly detect the currently installed site profile.
  • Implement addResourceTranslationsByProfile() on Drupal\Console\Utils\TranslationManager.
@frodri frodri changed the title [ console] DrupalCommand annotation fails when $extension_type is equal to "profile" [console] DrupalCommand annotation fails when $extension_type is equal to "profile" Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant