How to change default custom module path from





Go to this file app/etc/NonComposerComponentRegistration.php file

and add below lines before foreach in above file

 $pathList[] = dirname(__DIR__) . '/customdiretory/*/*/cli_commands.php';
 $pathList[] = dirname(__DIR__) . '/customdiretory/*/*/registration.php';
| improve this answer | |
  • 1
    +1 for good answer (y) – Rohan Hapani Oct 31 '18 at 10:56
  • @kranthi If this solution is working for you then you can mark as accepted so other user who face same problem can take benefit – Murtuza Zabuawala Oct 31 '18 at 11:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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