Skip to content

Kelp::Module::Config::ConfigGeneral - Config::General in your Kelp application

License

Notifications You must be signed in to change notification settings

yakunink/Kelp-Module-Config-ConfigGeneral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Kelp::Module::Config::ConfigGeneral - DEPRICATED !!!!!!!!! Config::General as config module for your Kelp applications.

SYNOPSIS

# app.psgi
use MyApp;
my $app = MyApp->new( config_module => 'Config::ConfigGeneral' );
$app->run;

DESCRIPTION

DEPRICATED!!! Module has moved to Kelp::Module::Config::General.

This module provides support of Config::General as your Kelp::Module::Config module.

Config::General module is loaded with following configuration options:

-ForceArray      => 1,
-IncludeAgain    => 1,
-InterPolateVars => 1,

Because Config::General provides key/value interface you are not able to create array of arrays for your default Kelp::Module::Logger configuration. This module does it for you.

Example:

modules = [ Logger ]

<modules_init Logger>
  <outputs Screen>
     name      debug
     min_level debug
     newline   1
     binmode   :encoding(UTF-8)
  </outputs>
  <outputs Screen>
     name      error
     min_level error
     newline   1
     stderr    1
     binmode   :encoding(UTF-8)
  </outputs>
</modules_init>

becomes:

{
    modules => [ 'Logger' ],
},
{
    modules_init => {
        Logger => [
            [
                'Screen',
                name      => 'debug',
                min_level => 'debug',
                newline   => 1
                binmode   => ':encoding(UTF-8)'
            ], [
                'Screen',
                name      => 'error',
                min_level => 'error',
                newline   => 1,
                stderr    => 1,
                binmode   => ':encoding(UTF-8)'
            ]
        ],
    }
}

AUTHOR

Konstantin Yakunin twinhooker@gmail.com

COPYRIGHT

Copyright 2017- Konstantin Yakunin

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

About

Kelp::Module::Config::ConfigGeneral - Config::General in your Kelp application

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages