MishkaPay.Registry (Mishka Pay v0.0.1)

Copy Markdown View Source

mishka_installer's plugin registry, for a project outside Mishka CMS. List it first in the application's children, before the project's own plugins (mix igniter.install mishka_pay does); Mishka Pay's application starts the providers, which register as soon as it is up:

children = [
  MishkaPay.Registry,
  MyApp.Pay.Keys,
  ...
]

mishka_installer leaves its own registry (its event and compile handlers and its Mnesia repo) out of its tree when it is compiled for a test run, and a dependency is compiled in the project's environment, so a project's MIX_ENV=test would run with no registry and no plugin could register. This supervisor starts only the parts that are not running: none when mishka_installer started them itself, and none inside Mishka CMS, whose core starts them before any extension.

Summary

Functions

Returns a specification to start this module under a supervisor.

The registry parts not running yet, in mishka_installer's order.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

missing()

@spec missing() :: [module()]

The registry parts not running yet, in mishka_installer's order.