Skip to content

Commit

Permalink
Fix documentation in Role::ConfigReader
Browse files Browse the repository at this point in the history
Signed-off-by: Mikko Johannes Koivunalho <[email protected]>
  • Loading branch information
mikkoi committed May 12, 2022
1 parent 4391296 commit fda4ed3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lib/Dancer2/Core/Role/ConfigReader.pm
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,19 @@ during creation:
The name of the environment used, e.g.
production, development, staging.
==attr location
=attr location
Absolute path to the directory where the server started.
The absolute path to the directory where the server started.
=attr default_config
A hash ref which contains the default values.
These arguments are passed when the object is created by
C<Dancer2::Core::Role::Config>. How the config
reader applies them as it needs.
C<Dancer2::Core::App>.
ConfigReader then passes C<environment> and C<location> forward to every
config reader class when it instantiates them.
How the config reader applies them, depend on its needs.
Provides a C<config> attribute that - when accessing
the first time - feeds itself by finding and parsing
Expand Down

0 comments on commit fda4ed3

Please sign in to comment.