Open
Description
Is your feature request related to a problem?
Not so much a problem, more of a collection of question/suggestions after having tested upgrading/migrating a project over to the v3 of wp-app-container.
Describe the desired solution
Answer questions and evaluate suggestions if they make sense for a future improvement day.
Describe the alternatives that you have considered
Additional context
Questions:
- What is the preferred way of creating an instance of the
App\App
class?
Currently there are 2 ways:app()
andApp::new()
, with the latter only creating the object but the former actually storing the instance created. - With the default configuration, when adding a
ExecutableModule
that registers a action oninit
, the registered action will never run.
This is caused because the default for theAppStatus::$lastStepHook
is init.
We should consider clarifying this difference from how Modularity normally executes these modules in the docs.
Possible documentation improvement tasks:
- Update examples & explanation in the README of the repository
- Create section in README (or seperate file) that explains changes since v2
- Create section explaining usage with modularity packages (
App::addPackage
v.s.App::addProvidersPackage
)
Code of Conduct
- I agree to follow this project's Code of Conduct