Skip to content

initPlugins parameters object #652

Description

@james-owen

Is your feature request related to a problem? Please describe.

When initializing plugins, occasionally several arguments are needed, which makes for too many arguments being passed to a single function.

Describe the solution you'd like

The function initPlugins in plugins.js should pass an object to each plugin.

Current:
plugin(router, pluginDBAdapter, publish, sites)

Suggested:
plugin(router, paramsObject)

Metadata

Metadata

Assignees

No one assigned

    Labels

    8.xBreaking changes for the next major version of Amphora

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions