Registering Extensions

In order to be used, an extension must be registered in the Waiter's configuration file, waiter-config.yaml as follows:

extensions:
  - name: \Extensions\extension-name

where extension-name is the name of your extension without its .php extension. If, for example you have an extension called MyExtension.php, then you would register it as follows:

extensions:
  - name: \Extensions\MyExtension

You can also include configuration parameters for your extension under a config entry. For example:

extensions:
  - name: \Extensions\MyExtension
    config
      myparam: myvalue

You can structure the configuration values in any way you like. Here, for example is the configuration for the Waiter's built-in landing page resolver:

extensions:
  - name: \Extensions\LandingPageResolver
    config:
      landingPages:
        subtitles: pages-vtt
        oembed: pages-oembed-index