Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

Proxy the dependencies in the URL generation command #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrewhowdencom
Copy link

No description provided.

With Magento 2.1.8+ CLI commands are constructed when the CLI client is
invoked. Additionally, DI will construct any objects that those commands
type in their constructors, so on and so fourth down the stack.

The problem is, this extension may exist in an environment in which the
store is not yet installed, and the database is thus unavailable. A
common place this is used is in 2.1.x in CI, as the database is required
in order to generate static content.

This commit proxies the dependencies of this constructor, such that the
constructor can be used (and thus appear in the CLI menu) but not
invoked while the store is not installed.
@andrewhowdencom
Copy link
Author

Notes are on the commit; Still doing some sanity checking on this.

@andrewhowdencom
Copy link
Author

sanity checking complete. fixed the bug i had, didn't explode. #shipit

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant