Drupal-console: [ console ] Command for renaming module

Created on 7 Jun 2017  路  5Comments  路  Source: hechoendrupal/drupal-console

Hi,

I was looking for an easier way to rename module.
Did anyone tried making command that would rename proper filenames and refactor hook implementation s in one swift move?

Thx

enhancement

Most helpful comment

I have a console module:refactor I'm currently working on. ETA 2 weeks. If it's worthy i'll make PR.

All 5 comments

@dreamfony We do not have a command of a feature request about this before, but sounds like a nice feature, I may missing something else but the task to achieve will be at least:

  • Duplicate files.
  • Rename files, hooks and references at routes, services, configurations.

@jmolivas Maybe add generic refactoring tool. Everything that could be generated should be refactorable :)

console refactor

  • module
  • service
  • entity

Maybe for simple start console refactor:module -- [old_name new_name] would rename

  • files
  • namespaces
  • use statements
  • hooks
  • references at routes, services, configurations

I have a console module:refactor I'm currently working on. ETA 2 weeks. If it's worthy i'll make PR.

@tmli3b3rm4n Looking forward to test it.

Any progress on this?

Was this page helpful?
0 / 5 - 0 ratings