Skip to content

Commit fda4ed3

Browse files
committed
Fix documentation in Role::ConfigReader
Signed-off-by: Mikko Johannes Koivunalho <[email protected]>
1 parent 4391296 commit fda4ed3

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

lib/Dancer2/Core/Role/ConfigReader.pm

+10-4
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,19 @@ during creation:
7979
The name of the environment used, e.g.
8080
production, development, staging.
8181
82-
==attr location
82+
=attr location
8383
84-
Absolute path to the directory where the server started.
84+
The absolute path to the directory where the server started.
85+
86+
=attr default_config
87+
88+
A hash ref which contains the default values.
8589
8690
These arguments are passed when the object is created by
87-
C<Dancer2::Core::Role::Config>. How the config
88-
reader applies them as it needs.
91+
C<Dancer2::Core::App>.
92+
ConfigReader then passes C<environment> and C<location> forward to every
93+
config reader class when it instantiates them.
94+
How the config reader applies them, depend on its needs.
8995
9096
Provides a C<config> attribute that - when accessing
9197
the first time - feeds itself by finding and parsing

0 commit comments

Comments
 (0)