1

I wanna move a module under app/code/vendor1 directory to app/code/vendor2 . I know that I should replace all namespace from vendor1/module1 to vendor2/module2 and replace all vendor1_module1 to vendre2_module2 (for example in registration.php file) and replace other things. so what is the best way to move a module in one directory into another module directory with the same functionality?

3
  • why do you want to move the modules/code ? Oct 5, 2016 at 9:15
  • I get a sample module from github I wanna mode it to my vendor directory and then I will customise it
    – ali gh
    Oct 5, 2016 at 10:38
  • I wanna move it to my vendor directory and then I will customise it
    – ali gh
    Oct 5, 2016 at 11:21

1 Answer 1

0

There is no tool for migrating module functionality. One more option is if you want to override the functionality, you can override/extend the class instaed of migration.

You need to change the naming convention of the module you want to move by your module.

Check if the module has any dependency and migrate accordingly. if module dependents on other/core modules make sure you have to follow the dependency.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.