Pow v0.1.0-alpha.5 Pow.Extension.Config View Source
Configuration helpers for extensions.
Link to this section Summary
Functions
Finds all extensions that has a module matching the provided 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
discover_modules(Pow.Config.t(), [any()]) :: [atom()]
Finds all extensions that has a module matching the provided module list.
It’ll concat the extension atom with the module list, and return a list of all modules that is available in the project.
Fetches the :extensions
key from the configuration.
Returns a binary of the extension atom.
This is usually used to create extension namespaces for methods to be used in shared modules.