Skip to content

Commit

Permalink
Merge pull request #2 from hechoendrupal/master
Browse files Browse the repository at this point in the history
update origin
  • Loading branch information
novia713 committed Mar 14, 2016
2 parents d9c9362 + 72ce29f commit 770d46f
Show file tree
Hide file tree
Showing 980 changed files with 13,334 additions and 2,087 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ env:
- PROJECT_DIR=/home/project

before_script:
- phpenv config-rm xdebug.ini
# This fixes a fail when install Drupal.
- echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer self-update
Expand All @@ -30,7 +31,8 @@ script:
- if [ -n "${TRAVIS_BUILD_DIR+1}" ]; then PROJECT_DIR=$TRAVIS_BUILD_DIR; fi
- phpunit
- php box.phar build
- php drupal.phar --version
- php drupal.phar init
- php drupal.phar check
- php drupal.phar site:new drupal8.dev 8.0.3 --no-interaction
- cd drupal8.dev
- php ../drupal.phar site:install standard --langcode=en --db-type=sqlite --db-file=sites/default/files/.ht.sqlite --site-name="Drupal 8 Site Install" [email protected] --account-name=admin [email protected] --account-pass=admin --no-interaction
Expand Down
34 changes: 19 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
- [Drupal Console](#drupal-console)
- [Required PHP version](#required-php-version)
- [Supported Drupal version](#supported-drupal-version)
- [Drupal Console documentation](#drupal-console-documentation)
- [Installing Drupal Console](#installing-drupal-console)
- [Using Drupal Console](#using-drupal-console)
- [Drupal Console documentation](#documentation)
- [Installing Drupal Console](#installing-drupal-console)
- [Supporting organizations](#supporting-organizations)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->
Expand All @@ -24,20 +23,22 @@ Drupal Console

The Drupal Console is a CLI tool to generate boilerplate code, interact and debug Drupal 8.

## Change Log
## Latest Version
Details of the latest version can be found on the Drupal Console project page under https://drupalconsole.com/.

## Releases Page
All notable changes to this project will be documented in the [releases page](https://github.com/hechoendrupal/DrupalConsole/releases)

## Required PHP version
PHP 5.5.9 or higher is required to use the Drupal Console application.
## Documentation
The most up-to-date documentation can be found at [bit.ly/console-book](http://bit.ly/console-book).

## Supported Drupal version
The Drupal 8 supported version is [Drupal 8.0.2](http://ftp.drupal.org/files/projects/drupal-8.0.2.tar.gz).
More information about using this project at the [official documentation](https://hechoendrupal.gitbooks.io/drupal-console/content/en/using/project.html).

## Drupal Console documentation
You can read or download the Drupal Console documentation at [bit.ly/console-book](http://bit.ly/console-book).
## Required PHP Version
PHP 5.5.9 or higher is required to use the Drupal Console application.

## Drupal Console support
You can ask for support at Drupal Console gitter chat room [http://bit.ly/console-support](http://bit.ly/console-support).
## Supported Drupal Version
The Drupal 8 supported version is [Drupal 8.0.2](http://ftp.drupal.org/files/projects/drupal-8.0.2.tar.gz).

## Installing Drupal Console
```
Expand All @@ -62,10 +63,12 @@ drupal init --override
# Update to the latest version.
drupal self-update
```
## Drupal Console Support
You can ask for support at Drupal Console gitter chat room [http://bit.ly/console-support](http://bit.ly/console-support).

More information about using this project at the [official documentation](https://hechoendrupal.gitbooks.io/drupal-console/content/en/using/project.html).

## Getting the project to contribute
## Getting The Project To Contribute

### Fork
Fork your own copy of the [Console](https://github.com/hechoendrupal/DrupalConsole/fork) repository to your account
Expand Down Expand Up @@ -120,9 +123,10 @@ source "$HOME/.console/console.rc" 2>/dev/null
ln -s ~/.console/drupal.fish ~/.config/fish/completions/drupal.fish
```

## Supporting organizations
## Supporting Organizations
[![FFW](https://www.drupal.org/files/ffw-logo.png)](https://ffwagency.com)
[![Indava](https://www.drupal.org/files/indava-logo.png)](http://www.indava.com/)
[![Anexus](https://www.drupal.org/files/anexus-logo.png)](http://www.anexusit.com/)

> Drupal is a registered trademark of Dries Buytaert.

> Drupal is a registered trademark of Dries Buytaert.
124 changes: 124 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
Drupal Console

What is it?
-----------
The Drupal Console is a suite of tools run from a command line interface (CLI)
to generate boilerplate code for interact and debug with Drupal 8.
From the ground up, it has been built to utilize the same modern PHP
practices which were introduced in Drupal 8.

The Drupal Console makes use of the Symfony Console and other third party
components which allows you to automatically generate most of the code needed
for a Drupal 8 module. In addition, Drupal Console helps you interact with
your Drupal installation

The Latest Version
------------------
Details of the latest version can be found on the Drupal Console
project page under https://drupalconsole.com/.

Releases Page
------------------
All notable changes to this project will be documented in the
[releases page](https://github.com/hechoendrupal/DrupalConsole/releases)

Documentation
-------------
The most up-to-date documentation can be found at [bit.ly/console-book]
(http://bit.ly/console-book).

More information about using this project at the [official documentation]
(https://hechoendrupal.gitbooks.io/drupal-console/content/en/using/project.html).

Required PHP Version
--------------------
PHP 5.5.9 or higher is required to use the Drupal Console application.

Installation
------------

- Run this in your terminal to get the latest Console version:
curl https://drupalconsole.com/installer -L -o drupal.phar

- Or if you don't have curl:
php -r "readfile('https://drupalconsole.com/installer');" > drupal.phar

- Accessing from anywhere on your system:
mv drupal.phar /usr/local/bin/drupal

- Apply executable permissions on the downloaded file:
chmod +x /usr/local/bin/drupal

- Show all available commands.
drupal list

- Copy configuration files.
drupal init --override

- Update to the latest version.
drupal self-update

Support
------------
You can ask for support at Drupal Console gitter chat room
[http://bit.ly/console-support](http://bit.ly/console-support).

Getting The Project To Contribute
---------------------------------

- Fork
Fork your own copy of the [Console](https://github.com/hechoendrupal/DrupalConsole/fork)
repository to your account

- Clone
Get a copy of your recently cloned version of console in your machine.
$ git clone [email protected]:[your-git-user-here]/DrupalConsole.git

- Install dependencies
Now that you have cloned the project, you need to download dependencies via
Composer.

$ cd /path/to/DrupalConsole
$ composer install

- Running the project
After using Composer to download dependencies, you can run the project by
executing.

$ bin/drupal

- Create a symbolic link
You can run this command to easily access the Drupal Console from anywhere
on your system.

$ sudo ln -s /path/to/DrupalConsole/bin/drupal /usr/local/bin/drupal

NOTE: The name `drupal` is just an alias you can name it anything you like.

More information about how to contribute with this project at the [official documentation]
(https://hechoendrupal.gitbooks.io/drupal-console/content/en/contributing/new-features.html).

Enabling Autocomplete
---------------------
You can enable autocomplete by executing drupal init

Bash: Bash support depends on the http://bash-completion.alioth.debian.org/
project which can be installed with your package manager of choice. Then add
this line to your shell configuration file.
source "$HOME/.console/console.rc" 2>/dev/null

Zsh: Add this line to your shell configuration file.
source "$HOME/.console/console.rc" 2>/dev/null

Fish: Create a symbolic link
ln -s ~/.console/drupal.fish ~/.config/fish/completions/drupal.fish

Supporting Organizations
------------------------

- [FFW](https://ffwagency.com)
- [Indava](http://www.indava.com/)
- [Anexus](http://www.anexusit.com/)


> Drupal is a registered trademark of Dries Buytaert.
18 changes: 12 additions & 6 deletions bin/drupal.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Drupal\Console\Helper\ValidatorHelper;
use Drupal\Console\Helper\TranslatorHelper;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Drupal\Console\Config;
use Drupal\Console\Helper\SiteHelper;
use Drupal\Console\EventSubscriber\ShowGeneratedFilesListener;
use Drupal\Console\EventSubscriber\ShowWelcomeMessageListener;
Expand All @@ -26,6 +25,10 @@
use Drupal\Console\Helper\RemoteHelper;
use Drupal\Console\Helper\HttpClientHelper;
use Drupal\Console\Helper\DrupalApiHelper;
use Drupal\Console\Helper\ContainerHelper;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;

set_time_limit(0);

Expand All @@ -41,14 +44,15 @@
exit(1);
}

$config = new Config();
$container = new ContainerBuilder();
$loader = new YamlFileLoader($container, new FileLocator($consoleRoot));
$loader->load('services.yml');

$config = $container->get('config');

$translatorHelper = new TranslatorHelper();
$translatorHelper->loadResource($config->get('application.language'), $consoleRoot);

$application = new Application($config, $translatorHelper);
$application->setDirectoryRoot($consoleRoot);

$helpers = [
'nested-array' => new NestedArrayHelper(),
'kernel' => new KernelHelper(),
Expand All @@ -64,9 +68,11 @@
'remote' => new RemoteHelper(),
'httpClient' => new HttpClientHelper(),
'api' => new DrupalApiHelper(),
'container' => new ContainerHelper($container),
];

$application->addHelpers($helpers);
$application = new Application($helpers);
$application->setDirectoryRoot($consoleRoot);

$dispatcher = new EventDispatcher();
$dispatcher->addSubscriber(new ValidateDependenciesListener());
Expand Down
35 changes: 0 additions & 35 deletions bin/sync-translations.sh

This file was deleted.

36 changes: 0 additions & 36 deletions bin/translation-clean-up.sh

This file was deleted.

30 changes: 0 additions & 30 deletions bin/translation-diff.sh

This file was deleted.

Loading

0 comments on commit 770d46f

Please sign in to comment.