Pow.Extension.Config (Pow v1.0.25) View Source

Configuration helpers for extensions.

Link to this section Summary

Functions

Finds all existing extension modules that matches the extensions and module list.

Fetches the :extensions key from the configuration.

Returns a binary of the extension atom.

Link to this section Functions

Link to this function

discover_modules(config, module_list)

View Source
This function is deprecated. Use `extension_modules/2` instead.
Link to this function

extension_modules(extensions, module_list)

View Source

Specs

extension_modules([atom()], [any()]) :: [atom()]

Finds all existing extension modules that matches the extensions and module list.

This will iterate through all extensions appending the module list to the extension module and return a list of all modules that exists in the project.

Specs

extensions(Pow.Config.t()) :: [atom()]

Fetches the :extensions key from the configuration.

Link to this function

underscore_extension(extension)

View Source
This function is deprecated. Create the namespace directly in your module.

Specs

underscore_extension(atom()) :: binary()

Returns a binary of the extension atom.

This is usually used to create extension namespaces for methods to be used in shared modules.