-
-
Notifications
You must be signed in to change notification settings - Fork 120
Closed
Description
The console command uses dependencies that bubble back to the store manager. This causes a fresh install on the CLI to break at step 4, showing the error that the table core_website does not exist.
The cause for this is the fact that Magento initializes all constructors of all console commands on any given bin/magento-command. So if any dependency of a dependency of a dependency of a dependency of a dependency of a dependency of a dependency expects certain database values to exist, this will break the installation (since the database is empty at that point).
The fix for this is to add proxies on the dependencies of your CLI command so that these dependencies of dependencies don't get loaded.
I'll send a PR for this.
Metadata
Metadata
Assignees
Labels
No labels