![]() |
![]()
| ![]() |
![]()
NAMEDancer2::Core::Role::ConfigReader - Config role for Dancer2 core objects VERSIONversion 1.1.2 DESCRIPTIONProvides 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. ATTRIBUTESlocationAbsolute path to the directory where the server started. config_locationGets the location from the configuration. Same as "$object->location". environments_locationGets the directory were the environment files are stored. configReturns the whole configuration. environmentsReturns the name of the environment. config_filesList of all the configuration files. METHODSsettingsAlias for config. Equivalent to <<$object->config>>. settingGet or set an element from the configuration. has_settingVerifies that a key exists in the configuration. load_config_fileLoad the configuration files. AUTHORDancer Core Developers COPYRIGHT AND LICENSEThis software is copyright (c) 2024 by Alexis Sukrieh. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
|