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

Update drupal console instructions #2795

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,23 @@ PHP 5.5.9 or higher is required to use the Drupal Console application.
cd /path/to/drupal8.dev

# Download DrupalConsole
```
composer require drupal/console:~1.0 \
--prefer-dist \
--optimize-autoloader \
--sort-packages
```

### Downloading using DrupalComposer
## Fix Getting the latest version

Drupal 8 include some libraries with old version of Symfony 2.7.x, as result you get an old release of Drupal Console.

To fix that, execute the following command and you will get the latest release of Drupal Console.
```
composer update drupal/console --with-dependencies
```

## Downloading using DrupalComposer
```
composer create-project \
drupal-composer/drupal-project:8.x-dev \
Expand Down
1 change: 1 addition & 0 deletions bin/drupal.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
' DrupalConsole must be executed within a Drupal Site.'.PHP_EOL.
' Try changing to a Drupal site directory and download it by executing:'. PHP_EOL .
' composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader'. PHP_EOL .
' composer update drupal/console --with-dependencies'. PHP_EOL .
PHP_EOL;

exit(1);
Expand Down