Dancer2::Core::Role::ConfigReader(3pm)

Dancer2::Core::Role::ConfigReader3pm

Config role for dancer2 core objects

Version

version 1.1.2

Overview

Provides a "config" attribute that feeds itself by finding and parsing configuration files.

Also provides a setting() method which is supposed to be used by externals to read/write config entries.

Attributes

location

Absolute path to the directory where the server started.

config_location

Gets the location from the configuration. Same as "$object->location".

environments_location

Gets the directory were the environment files are stored.

config

Returns the whole configuration.

environments

Returns the name of the environment.

config_files

List of all the configuration files.

Methods

settings

Alias for config. Equivalent to <<$object->config>>.

setting

Get or set an element from the configuration.

has_setting

Verifies that a key exists in the configuration.

load_config_file

Load the configuration files.

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

Author

Dancer Core Developers

From libdancer2-perl 1.1.2+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.