Skip to content

Instantly share code, notes, and snippets.

{
"alias": "console.phar",
"chmod": "0755",
"directories": [
"config",
"src"
],
"files": [
"config.yml",
"bin/console.php",
@jmolivas
jmolivas / ConfigExportCommand.php
Created February 21, 2015 17:02
Drupal Console ConfigExportCommand class
<?php
/**
* @file
* Contains \Drupal\AppConsole\Command\ConfigExportCommand.
*/
namespace Drupal\AppConsole\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
@jmolivas
jmolivas / chain-commands.yml
Created March 31, 2015 02:02
Sample file containing commands to get executed.
# /Users/jmolivas/develop/chain-commands.yml
commands:
chain:
- generate:module
- generate:controller
- generate:form:config
- generate:entity:content
- generate:entity:config
- generate:command
- generate:authentication:provider
@jmolivas
jmolivas / .travis.yml
Created April 5, 2015 07:36
Drupal Console .travis.yml file
language: php
php:
- 5.4
- 5.6
- hhvm
matrix:
allow_failures:
- php: hhvm
# Download using drush
$ drush dl composer_manager
# Enable composer_manager
$ drush en -y composer_manager
# Register composer command for Drupal core
$ drush composer-manager-init
$ drupal generate:module
--module=JoliNotif
--machine-name=jolinotif
--module-path=/modules/custom/
--description='JoliNotif library integration'
--core=8.x
--package=demo
--dependencies=''
--no-interaction
{
"name": "drupal/jolinotif",
"description": "Integrates the JoliNotif library into Drupal",
"type": "drupal-module",
"require": {
"jolicode/jolinotif": "1.0.1"
}
}
$ cd path/to/drupal8.dev/
$ cd core
$ composer drupal-update
<?php
/**
* @file
* Contains \Drupal\jolinotif\Logger\JolinotifLog.
*/
namespace Drupal\jolinotif\Logger;
use Drupal\Core\Logger\LogMessageParserInterface;