Skip to content

[Feature Request]: V3 question and possible documention improvements #15

Open
@remyvv

Description

@remyvv

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() and App::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 on init, the registered action will never run.
    This is caused because the default for the AppStatus::$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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions