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

Reset Static Variable for Module Creation #1982

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

alissn
Copy link
Contributor

@alissn alissn commented Nov 16, 2024

Hi,

In this pull request, I address an issue that occurs when creating a new module (not the first module). Since the list of modules is stored in a static variable during execution, the newly created module’s files are not immediately recognized. This creates problems when subsequent commands are called, such as:

  • module:make-seed
  • module:make-event-provider
  • module:route-provider
  • module:make-controller

To resolve this, I reset the static variable used for storing the module list. This ensures the module paths are re-scanned, allowing the new module to be fully recognized and enabling the commands to work correctly.

Fixes #1956

@dcblogdev dcblogdev merged commit bebe5b4 into nWidart:master Nov 16, 2024
4 of 5 checks passed
@alissn alissn mentioned this pull request Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERROR Module [Abc] already exists! while creating new Module if Seeder Generations is false
2 participants