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

Configuration helpers for extensions.

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.

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
@spec 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.

@spec 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.
@spec underscore_extension(atom()) :: binary()

Returns a binary of the extension atom.

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