Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[generate:controller] Error while generating the routing information #669

Closed
edutrul opened this issue Jun 11, 2015 · 5 comments
Closed
Labels

Comments

@edutrul
Copy link
Contributor

edutrul commented Jun 11, 2015

I had already a module working with:
anexus_custom.modal:
path: '/anexus/modal'
defaults:
_controller: '\Drupal\anexus_custom\Controller\AnexusCustomController::modal'
_title: Modal
requirements:
_permission: 'access content'

That's it!

then execute $ drupal generate:controller (module: anexus_custom)
next next
screenshot at jun 11 10-35-49

and got the error:

screenshot at jun 11 10-28-49

and that's what happenned:
screenshot at jun 11 10-37-06

So what I did, was to fix it manually

as you can see it just needed to create a new space, tried in version Drupal Console version 0.7.12 in drupal-8.0.0-beta11$

@jmolivas jmolivas modified the milestone: 0.7.14 release Jun 12, 2015
@jmolivas
Copy link
Member

Seems like a new line must be added on the first line at the following twig files:

  • templates/module/routing-controller.yml.twig
  • templates/module/routing-entity-content.yml.twig
  • templates/module/routing-entity.yml
  • templates/module/routing-form.yml

@jmolivas
Copy link
Member

@edutrul let me know if you want to take care of this issue.

@jmolivas jmolivas changed the title Unexpected characters near... [generate:controller] Error while generating the routing information Jun 12, 2015
@edutrul
Copy link
Contributor Author

edutrul commented Jun 12, 2015

Yes please I'd love to! thanks for considering me!

@jmolivas
Copy link
Member

Feel free to ping me if any help is needed @edutrul

@jmolivas
Copy link
Member

I tested this and it works properly. Thanks @edutrul

@omero omero added the fixed label Jun 14, 2015
@omero omero closed this as completed Jun 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants