Skip to content

Conversation

@ao2
Copy link
Contributor

@ao2 ao2 commented Dec 21, 2016

When passing profile or machine-name on the command line like that:

drupal generate:profile --profile=PROFILE --machine-name=MACHINE_NAME

drupal console gives an error:

Error: Call to undefined method Drupal\Console\Command\Generate\ProfileCommand::validateModuleName()
in Drupal\Console\Command\Generate\ProfileCommand->interact()
(line 234 of .../vendor/drupal/console/src/Command/Generate/ProfileCommand.php).

After fixing this another similar error shows up:

Error: Call to undefined method Drupal\Console\Command\Generate\ProfileCommand::validateModule()
in Drupal\Console\Command\Generate\ProfileCommand->interact()
(line 253 of .../vendor/drupal/console/src/Command/Generate/ProfileCommand.php).

Fix both so that the command line from above works again.

Closes #3035

… line

When passing profile or machine-name on the command line like that:

  drupal generate:profile --profile=PROFILE --machine-name=MACHINE_NAME

drupal console gives an error:

Error: Call to undefined method Drupal\Console\Command\Generate\ProfileCommand::validateModuleName() in Drupal\Console\Command\Generate\ProfileCommand->interact() (line 234 of .../vendor/drupal/console/src/Command/Generate/ProfileCommand.php).

After fixing this another similar error shows up:

Error: Call to undefined method Drupal\Console\Command\Generate\ProfileCommand::validateModule() in Drupal\Console\Command\Generate\ProfileCommand->interact() (line 253 of .../vendor/drupal/console/src/Command/Generate/ProfileCommand.php).

Fix both so that the command line from above works again.

Closes #3035
@jmolivas jmolivas merged commit f31a252 into hechoendrupal:master Dec 22, 2016
@jmolivas
Copy link
Member

@ao2 Thanks for your contribution, your PR was merged. This will be included on the next release.

@jmolivas jmolivas added this to the 1.0.0-rc12 milestone Dec 22, 2016
@ao2 ao2 deleted the generate-profile-fix-3035 branch December 29, 2016 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[generate:profile] Call to undefined method when passing the profile name on the command line

2 participants