Skip to content

Commit

Permalink
Update drupal console instructions (#2795)
Browse files Browse the repository at this point in the history
  • Loading branch information
enzolutions authored Oct 12, 2016
1 parent f0ad023 commit 7293c1b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
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

0 comments on commit 7293c1b

Please sign in to comment.