Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about installation instructions #120

Open
Narretz opened this issue Jul 18, 2017 · 3 comments
Open

Question about installation instructions #120

Narretz opened this issue Jul 18, 2017 · 3 comments

Comments

@Narretz
Copy link

Narretz commented Jul 18, 2017

The readme only gives these installation instructions:

curl https://drupalconsole.com/installer -L -o drupal.phar
mv drupal.phar /usr/local/bin/drupal
chmod +x /usr/local/bin/drupal

Why doesn't it mention the following?

composer global require drupal/console-launcher

This is much more "composer-style" and it also works much easier for Windows installation.

@gapple
Copy link

gapple commented Aug 13, 2017

I started looking into this, resulting in the above-linked pull request, but it doesn't solve the problems when installed globally via composer due to some assumptions within drupal/console-core about paths that launcher relies on to get its services.yml definition loaded.

@jmolivas
Copy link
Member

Is this the PR #127 to fix the issue @gapple ?

@jmolivas
Copy link
Member

@gapple tested your patch and found the issue you mentioned about loading services.

~/.composer/vendor/bin/drupal --root=/Users/jmolivas/develop/drupal/sites/drupal.dev list

Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "console.launcher". in /Users/jmolivas/.composer/vendor/symfony/dependency-injection/ContainerBuilder.php:994
Stack trace:
#0 /Users/jmolivas/.composer/vendor/symfony/dependency-injection/ContainerBuilder.php(577): Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition('console.launche...')
#1 /Users/jmolivas/.composer/vendor/drupal/console-launcher/bin/drupal.php(113): Symfony\Component\DependencyInjection\ContainerBuilder->get('console.launche...')
#2 /Users/jmolivas/.composer/vendor/drupal/console-launcher/bin/drupal(4): require('/Users/jmolivas...')
#3 {main}
thrown in /Users/jmolivas/.composer/vendor/symfony/dependency-injection/ContainerBuilder.php on line 994

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

No branches or pull requests

3 participants