X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole-en%2Ftranslations%2Fgenerate.controller.yml;fp=vendor%2Fdrupal%2Fconsole-en%2Ftranslations%2Fgenerate.controller.yml;h=5b05332f92ca8187850783fac12a1f56042c008e;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=9871669ceaeed65fa67ece6f91040669ef078faf;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/vendor/drupal/console-en/translations/generate.controller.yml b/vendor/drupal/console-en/translations/generate.controller.yml index 9871669ce..5b05332f9 100644 --- a/vendor/drupal/console-en/translations/generate.controller.yml +++ b/vendor/drupal/console-en/translations/generate.controller.yml @@ -2,21 +2,29 @@ description: 'Generate & Register a controller' help: 'The generate:controller command helps you generate a new controller.' welcome: 'Welcome to the Drupal Controller generator' options: - module: common.options.module - class: 'Controller Class name' - routes: 'The routes, must be an array containing [title, method, path]' - services: common.options.services - test: 'Generate a test class' + module: 'The Module name.' + class: 'Controller Class name' + routes: 'The routes, must be an array containing [title, method, path]' + services: 'Load services from the container.' + test: 'Generate a test class' questions: - module: common.questions.module - class: 'Enter the Controller class name' - title: 'Enter the Controller method title (to stop adding more methods, leave this empty)' - method: 'Enter the action method name' - path: 'Enter the route path' - services: common.questions.services - test: 'Do you want to generate a unit test class' + module: 'Enter the module name' + class: 'Enter the Controller class name' + title: 'Enter the Controller method title (to stop adding more methods, leave this empty)' + method: 'Enter the action method name' + path: 'Enter the route path' + services: 'Enter your service' + test: 'Do you want to generate a unit test class?' messages: - title-empty: 'Title must contain a value (you must enter at least one method)' - title-already-added: 'Title was already added' - method-name-already-added: 'Method name was already added' - path-already-added: 'Path was already added' + title-empty: 'Title must contain a value (you must enter at least one method)' + title-already-added: 'Title was already added' + method-name-already-added: 'Method name was already added' + path-already-added: 'Path was already added' +examples: + - description: 'Generate controller specifying the module name, the class name and its routes' + execution: | + drupal generate:controller \ + --module="modulename" \ + --class="DefaultController" \ + --routes='"title":"ControllerMethod", "name":"modulename.default_controller_hello", "method":"hello", "path":"/modulename/hello/{name}"' \ + --test \ No newline at end of file