1Dancer2::Core::Role::CoUnsfeirgRCeoandterri(b3u)ted PerlDaDnocceurm2e:n:tCaotrieo:n:Role::ConfigReader(3)
2
3
4

NAME

6       Dancer2::Core::Role::ConfigReader - Config role for Dancer2 core
7       objects
8

VERSION

10       version 0.301004
11

DESCRIPTION

13       Provides a "config" attribute that feeds itself by finding and parsing
14       configuration files.
15
16       Also provides a "setting()" method which is supposed to be used by
17       externals to read/write config entries.
18

ATTRIBUTES

20   location
21       Absolute path to the directory where the server started.
22
23   config_location
24       Gets the location from the configuration. Same as "$object->location".
25
26   environments_location
27       Gets the directory were the environment files are stored.
28
29   config
30       Returns the whole configuration.
31
32   environments
33       Returns the name of the environment.
34
35   config_files
36       List of all the configuration files.
37

METHODS

39   settings
40       Alias for config. Equivalent to <<$object->config>>.
41
42   setting
43       Get or set an element from the configuration.
44
45   has_setting
46       Verifies that a key exists in the configuration.
47
48   load_config_file
49       Load the configuration files.
50

AUTHOR

52       Dancer Core Developers
53
55       This software is copyright (c) 2021 by Alexis Sukrieh.
56
57       This is free software; you can redistribute it and/or modify it under
58       the same terms as the Perl 5 programming language system itself.
59
60
61
62perl v5.34.0                      2021-07-2D2ancer2::Core::Role::ConfigReader(3)
Impressum