{"action":"created","issue":{"url":"https://api.github.com/repos/hechoendrupal/drupal-console/issues/3942","repository_url":"https://api.github.com/repos/hechoendrupal/drupal-console","labels_url":"https://api.github.com/repos/hechoendrupal/drupal-console/issues/3942/labels{/name}","comments_url":"https://api.github.com/repos/hechoendrupal/drupal-console/issues/3942/comments","events_url":"https://api.github.com/repos/hechoendrupal/drupal-console/issues/3942/events","html_url":"https://github.com/hechoendrupal/drupal-console/issues/3942","id":367778263,"node_id":"MDU6SXNzdWUzNjc3NzgyNjM=","number":3942,"title":"drupal generate:form","user":{"login":"laurencefass","id":3512857,"node_id":"MDQ6VXNlcjM1MTI4NTc=","avatar_url":"https://avatars0.githubusercontent.com/u/3512857?v=4","gravatar_id":"","url":"https://api.github.com/users/laurencefass","html_url":"https://github.com/laurencefass","followers_url":"https://api.github.com/users/laurencefass/followers","following_url":"https://api.github.com/users/laurencefass/following{/other_user}","gists_url":"https://api.github.com/users/laurencefass/gists{/gist_id}","starred_url":"https://api.github.com/users/laurencefass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurencefass/subscriptions","organizations_url":"https://api.github.com/users/laurencefass/orgs","repos_url":"https://api.github.com/users/laurencefass/repos","events_url":"https://api.github.com/users/laurencefass/events{/privacy}","received_events_url":"https://api.github.com/users/laurencefass/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-08T12:58:55Z","updated_at":"2018-10-09T20:41:45Z","closed_at":null,"author_association":"NONE","body":"[ *ISSUE-GROUP* ] Short description\r\n\r\nconsole generate\r\n\r\n### Problem/Motivation\r\n\r\nerror generating custom form.\r\n\r\n```\r\n> drupal generate:form\r\n\r\n // Welcome to the Drupal Form generator\r\n Enter the module name [admin_toolbar]:\r\n > myfirstmodule\r\n\r\n Enter the Form Class name [DefaultForm]:\r\n > myfirstForm\r\n\r\n Enter the Form id [myfirst_form]:\r\n >\r\n\r\n Do you want to load services from the container? (yes/no) [no]:\r\n >\r\n\r\n Do you want to generate a config file? (yes/no) [yes]:\r\n >\r\n\r\n Do you want to generate a form structure? (yes/no) [yes]:\r\n >\r\n\r\nAvailable types: button, checkbox, checkboxes, color, date, datelist, datetime, email, entity_autocomplete, field_ui_table, fieldset, file, hidden, image_button, item,\r\nlanguage_configuration, language_select, machine_name, managed_file, number, password, password_confirm, path, radio, radios, range, search, select, submit, table, tableselect, tel, text_format, textarea, textfield, token, url, value, webform_address, webform_audio_file, webform_autocomplete, webform_buttons, webform_buttons_other, webform_checkbox_value, webform_checkboxes_other, webform_codemirror, webform_computed_token, webform_computed_twig, webform_contact, webform_custom_composite, webform_document_file, webform_element_attributes, webform_element_composite, webform_element_multiple, webform_element_options, webform_element_states, webform_email_confirm, webform_email_multiple, webform_entity_checkboxes, webform_entity_radios, webform_entity_select, webform_excluded_columns, webform_excluded_elements, webform_html_editor, webform_image_file, webform_image_resolution, webform_likert, webform_link, webform_location_geocomplete, webform_location_places, webform_mapping, webform_multiple, webform_name, webform_options, webform_permissions, webform_radios_other, webform_rating, webform_roles, webform_select_other, webform_signature, webform_submission_views, webform_submission_views_replace, webform_table_sort, webform_tableselect_sort, webform_telephone, webform_term_checkboxes, webform_term_select, webform_terms_of_service, webform_time, webform_toggle, webform_toggles, webform_users, webform_video_file, weight\r\n\r\n Enter a new field properties\r\n\r\n New field type (press <return> to stop adding fields) []:\r\n > email\r\n Input label:\r\n > email\r\n Input machine name [email]:\r\n >\r\n Description []:\r\n >\r\n Default value []:\r\n > default@email.com\r\n Weight for input item [0]:\r\n >\r\n Enter a new field properties\r\n New field type (press <return> to stop adding fields) []:\r\n >\r\n Enter the route path [/myfirstmodule/form/myfirst]:\r\n >\r\n // router:rebuild\r\nRebuilding routes, wait a moment please\r\nParseError: syntax error, unexpected 'default' (T_DEFAULT) in /var/www/html/web/modules/custom/myfirstmodule/src/Form/myfirstForm.php on line 28 #0 /var/www/html/vendor/composer/ClassLoader.php(322): Composer\\Autoload\\includeFile('/var/www/html/w...')\r\n#1 [internal function]: Composer\\Autoload\\ClassLoader->loadClass('Drupal\\\\myfirstm...')\r\n#2 [internal function]: spl_autoload_call('Drupal\\\\myfirstm...')\r\n#3 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityResolverManager.php(72): class_exists('\\\\Drupal\\\\myfirst...')\r\n#4 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityResolverManager.php(206): Drupal\\Core\\Entity\\EntityResolverManager->getControllerClass(Array)\r\n#5 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php(48): Drupal\\Core\\Entity\\EntityResolverManager->setRouteOptions(Object(Symfony\\Component\\Routing\\Route))\r\n#6 [internal function]: Drupal\\Core\\EventSubscriber\\EntityRouteAlterSubscriber->onRoutingRouteAlterSetType(Object(Drupal\\Core\\Routing\\RouteBuildEvent), 'routing.route_a...', Object(Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher))\r\n#7 /var/www/html/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Drupal\\Core\\Routing\\RouteBuildEvent), 'routing.route_a...', Object(Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher))\r\n#8 /var/www/html/web/core/lib/Drupal/Core/Routing/RouteBuilder.php(184): Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher->dispatch('routing.route_a...',\r\nObject(Drupal\\Core\\Routing\\RouteBuildEvent))\r\n#9 /var/www/html/web/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php(83): Drupal\\Core\\Routing\\RouteBuilder->rebuild()\r\n#10 /var/www/html/vendor/drupal/console/src/Command/Router/RebuildCommand.php(48): Drupal\\Core\\ProxyClass\\Routing\\RouteBuilder->rebuild()\r\n#11 /var/www/html/vendor/symfony/console/Command/Command.php(255): Drupal\\Console\\Command\\Router\\RebuildCommand->execute(Object(Symfony\\Component\\Console\\Input\\ArrayInput), Object(Drupal\\Console\\Core\\Style\\DrupalStyle))\r\n#12 /var/www/html/vendor/drupal/console-core/src/EventSubscriber/CallCommandListener.php(76): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArrayInput), Object(Drupal\\Console\\Core\\Style\\DrupalStyle))\r\n#13 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(212): Drupal\\Console\\Core\\EventSubscriber\\CallCommandListener->callCommands(Object(Symfony\\Component\\Console\\Event\\ConsoleTerminateEvent), 'console.termina...', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\r\n#14 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(44): Symfony\\Component\\EventDispatcher\\EventDispatcher->doDispatch(Array, 'console.termina...', Object(Symfony\\Component\\Console\\Event\\ConsoleTerminateEvent))\r\n#15 /var/www/html/vendor/symfony/console/Application.php(991): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch('console.termina...', Object(Symfony\\Component\\Console\\Event\\ConsoleTerminateEvent))\r\n#16 /var/www/html/vendor/symfony/console/Application.php(248): Symfony\\Component\\Console\\Application->doRunCommand(Object(Drupal\\Console\\Command\\Generate\\FormBaseCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#17 /var/www/html/vendor/drupal/console-core/src/Application.php(185): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#18 /var/www/html/vendor/drupal/console/src/Application.php(64): Drupal\\Console\\Core\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#19 /var/www/html/vendor/symfony/console/Application.php(148): Drupal\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#20 /var/www/html/vendor/drupal/console/bin/drupal.php(89): Symfony\\Component\\Console\\Application->run()\r\n#21 /var/www/html/vendor/drupal/console/bin/drupal(4): require('/var/www/html/v...')\r\n#22 {main}\r\nParseError: syntax error, unexpected &#039;default&#039; (T_DEFAULT) in Composer\\Autoload\\includeFile() (line 28 of /var/www/html/web/modules/custom/myfirstmodule/src/Form/myfirstForm.php).\r\n\r\n**Details to include:**\r\n- Drupal version : latest\r\n- Console version : latest\r\n```"},"comment":{"url":"https://api.github.com/repos/hechoendrupal/drupal-console/issues/comments/428343833","html_url":"https://github.com/hechoendrupal/drupal-console/issues/3942#issuecomment-428343833","issue_url":"https://api.github.com/repos/hechoendrupal/drupal-console/issues/3942","id":428343833,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODM0MzgzMw==","user":{"login":"laurencefass","id":3512857,"node_id":"MDQ6VXNlcjM1MTI4NTc=","avatar_url":"https://avatars0.githubusercontent.com/u/3512857?v=4","gravatar_id":"","url":"https://api.github.com/users/laurencefass","html_url":"https://github.com/laurencefass","followers_url":"https://api.github.com/users/laurencefass/followers","following_url":"https://api.github.com/users/laurencefass/following{/other_user}","gists_url":"https://api.github.com/users/laurencefass/gists{/gist_id}","starred_url":"https://api.github.com/users/laurencefass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurencefass/subscriptions","organizations_url":"https://api.github.com/users/laurencefass/orgs","repos_url":"https://api.github.com/users/laurencefass/repos","events_url":"https://api.github.com/users/laurencefass/events{/privacy}","received_events_url":"https://api.github.com/users/laurencefass/received_events","type":"User","site_admin":false},"created_at":"2018-10-09T20:41:45Z","updated_at":"2018-10-09T20:41:45Z","author_association":"NONE","body":"thanks for reply.\r\n\r\nso \r\n\r\nDefault value []:\r\n> \"default@email.com\"\r\n\r\nis correct?\r\n"}}
{"actor":{"display_login":"laurencefass"}}