Enabling a plugin

A plugin can be enabled across an application by adding the related entry to the environment configuration file.

In this example, the environment will expect to find this plugin class at: Plugin/My/Plugins/MyPlugin.js.

Note that plugin filenames are resolved the same way as use statements, only relative to the Plugin namespace. This means that a filename without an extension will be treated as a class.

environment.js
...
plugins: [
    'My/Plugins/MyPlugin'
]
...

Last updated