Skip to content

Commit

Permalink
Merge pull request #1581 from jmolivas/enzolutions-generate-content
Browse files Browse the repository at this point in the history
[create:nodes] Add New command.
  • Loading branch information
jmolivas committed Dec 28, 2015
2 parents acaa9be + b484380 commit d15d9b4
Show file tree
Hide file tree
Showing 18 changed files with 798 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bin/drupal.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
use Drupal\Console\Helper\CommandDiscoveryHelper;
use Drupal\Console\Helper\RemoteHelper;
use Drupal\Console\Helper\HttpClientHelper;
use Drupal\Console\Helper\DrupalApiHelper;

set_time_limit(0);

Expand Down Expand Up @@ -62,6 +63,7 @@
'commandDiscovery' => new CommandDiscoveryHelper($config->get('application.develop')),
'remote' => new RemoteHelper(),
'httpClient' => new HttpClientHelper(),
'api' => new DrupalApiHelper(),
];

$application->addHelpers($helpers);
Expand Down
28 changes: 28 additions & 0 deletions config/translations/ca/create.nodes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
description: 'Generate dummy content for your Drupal 8 application.'
help: 'The <info>generate:content</info> command helps you generate fake content.'
welcome: 'Welcome to the Drupal Content generator'
arguments:
content-types: 'Content type(s) to be used content generation'
options:
limit: 'How many nodes would you like to generate'
title-words: 'Maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated'
questions:
content-type: 'Select content type(s) to be used on content generation'
limit: 'Enter how many nodes would you like to generate'
title-words: 'Enter the maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated?'
time-ranges:
- 'Now'
- '1 hour ago'
- '1 day ago'
- '1 week ago'
- '1 month ago'
- '1 year ago'
messages:
node-id: 'Node Id'
content-type: 'Content type'
title: 'Title'
created: 'Created Time'
invalid-content-types: 'Content types %s are invalid'
generated-content: 'Generated %s nodes successfully'
28 changes: 28 additions & 0 deletions config/translations/en/create.nodes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
description: 'Generate dummy content for your Drupal 8 application.'
help: 'The <info>generate:content</info> command helps you generate fake content.'
welcome: 'Welcome to the Drupal Content generator'
arguments:
content-types: 'Content type(s) to be used content generation'
options:
limit: 'How many nodes would you like to generate'
title-words: 'Maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated'
questions:
content-type: 'Select content type(s) to be used on content generation'
limit: 'Enter how many nodes would you like to generate'
title-words: 'Enter the maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated?'
time-ranges:
- 'Now'
- '1 hour ago'
- '1 day ago'
- '1 week ago'
- '1 month ago'
- '1 year ago'
messages:
node-id: 'Node Id'
content-type: 'Content type'
title: 'Title'
created: 'Created Time'
invalid-content-types: 'Content types %s are invalid'
generated-content: 'Created %s nodes successfully'
28 changes: 28 additions & 0 deletions config/translations/es/create.nodes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
description: 'Generate dummy content for your Drupal 8 application.'
help: 'The <info>generate:content</info> command helps you generate fake content.'
welcome: 'Welcome to the Drupal Content generator'
arguments:
content-types: 'Content type(s) to be used content generation'
options:
limit: 'How many nodes would you like to generate'
title-words: 'Maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated'
questions:
content-type: 'Select content type(s) to be used on content generation'
limit: 'Enter how many nodes would you like to generate'
title-words: 'Enter the maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated?'
time-ranges:
- 'Now'
- '1 hour ago'
- '1 day ago'
- '1 week ago'
- '1 month ago'
- '1 year ago'
messages:
node-id: 'Node Id'
content-type: 'Content type'
title: 'Title'
created: 'Created Time'
invalid-content-types: 'Content types %s are invalid'
generated-content: 'Generated %s nodes successfully'
28 changes: 28 additions & 0 deletions config/translations/fr/create.nodes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
description: 'Generate dummy content for your Drupal 8 application.'
help: 'The <info>generate:content</info> command helps you generate fake content.'
welcome: 'Welcome to the Drupal Content generator'
arguments:
content-types: 'Content type(s) to be used content generation'
options:
limit: 'How many nodes would you like to generate'
title-words: 'Maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated'
questions:
content-type: 'Select content type(s) to be used on content generation'
limit: 'Enter how many nodes would you like to generate'
title-words: 'Enter the maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated?'
time-ranges:
- 'Now'
- '1 hour ago'
- '1 day ago'
- '1 week ago'
- '1 month ago'
- '1 year ago'
messages:
node-id: 'Node Id'
content-type: 'Content type'
title: 'Title'
created: 'Created Time'
invalid-content-types: 'Content types %s are invalid'
generated-content: 'Generated %s nodes successfully'
28 changes: 28 additions & 0 deletions config/translations/hi/create.nodes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
description: 'Generate dummy content for your Drupal 8 application.'
help: 'The <info>generate:content</info> command helps you generate fake content.'
welcome: 'Welcome to the Drupal Content generator'
arguments:
content-types: 'Content type(s) to be used content generation'
options:
limit: 'How many nodes would you like to generate'
title-words: 'Maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated'
questions:
content-type: 'Select content type(s) to be used on content generation'
limit: 'Enter how many nodes would you like to generate'
title-words: 'Enter the maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated?'
time-ranges:
- 'Now'
- '1 hour ago'
- '1 day ago'
- '1 week ago'
- '1 month ago'
- '1 year ago'
messages:
node-id: 'Node Id'
content-type: 'Content type'
title: 'Title'
created: 'Created Time'
invalid-content-types: 'Content types %s are invalid'
generated-content: 'Generated %s nodes successfully'
28 changes: 28 additions & 0 deletions config/translations/hu/create.nodes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
description: 'Generate dummy content for your Drupal 8 application.'
help: 'The <info>generate:content</info> command helps you generate fake content.'
welcome: 'Welcome to the Drupal Content generator'
arguments:
content-types: 'Content type(s) to be used content generation'
options:
limit: 'How many nodes would you like to generate'
title-words: 'Maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated'
questions:
content-type: 'Select content type(s) to be used on content generation'
limit: 'Enter how many nodes would you like to generate'
title-words: 'Enter the maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated?'
time-ranges:
- 'Now'
- '1 hour ago'
- '1 day ago'
- '1 week ago'
- '1 month ago'
- '1 year ago'
messages:
node-id: 'Node Id'
content-type: 'Content type'
title: 'Title'
created: 'Created Time'
invalid-content-types: 'Content types %s are invalid'
generated-content: 'Generated %s nodes successfully'
28 changes: 28 additions & 0 deletions config/translations/pt_br/create.nodes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
description: 'Generate dummy content for your Drupal 8 application.'
help: 'The <info>generate:content</info> command helps you generate fake content.'
welcome: 'Welcome to the Drupal Content generator'
arguments:
content-types: 'Content type(s) to be used content generation'
options:
limit: 'How many nodes would you like to generate'
title-words: 'Maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated'
questions:
content-type: 'Select content type(s) to be used on content generation'
limit: 'Enter how many nodes would you like to generate'
title-words: 'Enter the maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated?'
time-ranges:
- 'Now'
- '1 hour ago'
- '1 day ago'
- '1 week ago'
- '1 month ago'
- '1 year ago'
messages:
node-id: 'Node Id'
content-type: 'Content type'
title: 'Title'
created: 'Created Time'
invalid-content-types: 'Content types %s are invalid'
generated-content: 'Generated %s nodes successfully'
28 changes: 28 additions & 0 deletions config/translations/ro/create.nodes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
description: 'Generate dummy content for your Drupal 8 application.'
help: 'The <info>generate:content</info> command helps you generate fake content.'
welcome: 'Welcome to the Drupal Content generator'
arguments:
content-types: 'Content type(s) to be used content generation'
options:
limit: 'How many nodes would you like to generate'
title-words: 'Maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated'
questions:
content-type: 'Select content type(s) to be used on content generation'
limit: 'Enter how many nodes would you like to generate'
title-words: 'Enter the maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated?'
time-ranges:
- 'Now'
- '1 hour ago'
- '1 day ago'
- '1 week ago'
- '1 month ago'
- '1 year ago'
messages:
node-id: 'Node Id'
content-type: 'Content type'
title: 'Title'
created: 'Created Time'
invalid-content-types: 'Content types %s are invalid'
generated-content: 'Generated %s nodes successfully'
28 changes: 28 additions & 0 deletions config/translations/ru/create.nodes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
description: 'Generate dummy content for your Drupal 8 application.'
help: 'The <info>generate:content</info> command helps you generate fake content.'
welcome: 'Welcome to the Drupal Content generator'
arguments:
content-types: 'Content type(s) to be used content generation'
options:
limit: 'How many nodes would you like to generate'
title-words: 'Maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated'
questions:
content-type: 'Select content type(s) to be used on content generation'
limit: 'Enter how many nodes would you like to generate'
title-words: 'Enter the maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated?'
time-ranges:
- 'Now'
- '1 hour ago'
- '1 day ago'
- '1 week ago'
- '1 month ago'
- '1 year ago'
messages:
node-id: 'Node Id'
content-type: 'Content type'
title: 'Title'
created: 'Created Time'
invalid-content-types: 'Content types %s are invalid'
generated-content: 'Generated %s nodes successfully'
28 changes: 28 additions & 0 deletions config/translations/vn/create.nodes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
description: 'Generate dummy content for your Drupal 8 application.'
help: 'The <info>generate:content</info> command helps you generate fake content.'
welcome: 'Welcome to the Drupal Content generator'
arguments:
content-types: 'Content type(s) to be used content generation'
options:
limit: 'How many nodes would you like to generate'
title-words: 'Maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated'
questions:
content-type: 'Select content type(s) to be used on content generation'
limit: 'Enter how many nodes would you like to generate'
title-words: 'Enter the maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated?'
time-ranges:
- 'Now'
- '1 hour ago'
- '1 day ago'
- '1 week ago'
- '1 month ago'
- '1 year ago'
messages:
node-id: 'Node Id'
content-type: 'Content type'
title: 'Title'
created: 'Created Time'
invalid-content-types: 'Content types %s are invalid'
generated-content: 'Generated %s nodes successfully'
28 changes: 28 additions & 0 deletions config/translations/zh_hans/create.nodes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
description: 'Generate dummy content for your Drupal 8 application.'
help: 'The <info>generate:content</info> command helps you generate fake content.'
welcome: 'Welcome to the Drupal Content generator'
arguments:
content-types: 'Content type(s) to be used content generation'
options:
limit: 'How many nodes would you like to generate'
title-words: 'Maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated'
questions:
content-type: 'Select content type(s) to be used on content generation'
limit: 'Enter how many nodes would you like to generate'
title-words: 'Enter the maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated?'
time-ranges:
- 'Now'
- '1 hour ago'
- '1 day ago'
- '1 week ago'
- '1 month ago'
- '1 year ago'
messages:
node-id: 'Node Id'
content-type: 'Content type'
title: 'Title'
created: 'Created Time'
invalid-content-types: 'Content types %s are invalid'
generated-content: 'Generated %s nodes successfully'
2 changes: 1 addition & 1 deletion src/Command/ContainerAwareCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ public function getThemeHandler()
}

/**
* @return \Drupal\Core\Extension\ThemeHandlerInterface
* @return \Drupal\user\MigratePassword
*/
public function getPassHandler()
{
Expand Down

0 comments on commit d15d9b4

Please sign in to comment.