Handler: Rename Initialization::GlobalInit into Reload (#717)
This commit is contained in:
parent
d1bd1e0003
commit
29bcee135b
|
@ -11,7 +11,7 @@ lib/Lemonldap/NG/Handler/API/ApacheMP2.pm
|
|||
lib/Lemonldap/NG/Handler/API/CGI.pm
|
||||
lib/Lemonldap/NG/Handler/API/Nginx.pm
|
||||
lib/Lemonldap/NG/Handler/CGI.pm
|
||||
lib/Lemonldap/NG/Handler/Initialization/GlobalInit.pm
|
||||
lib/Lemonldap/NG/Handler/Reload.pm
|
||||
lib/Lemonldap/NG/Handler/Main.pm
|
||||
lib/Lemonldap/NG/Handler/Main/Headers.pm
|
||||
lib/Lemonldap/NG/Handler/Main/Jail.pm
|
||||
|
@ -32,7 +32,7 @@ META.yml
|
|||
README
|
||||
t/01-Lemonldap-NG-Handler-Main.t
|
||||
t/02-Lemonldap-NG-Handler-Main-Portal.t
|
||||
t/05-Lemonldap-NG-Handler-Initialization-GlobalInit.t
|
||||
t/05-Lemonldap-NG-Handler-Reload.t
|
||||
t/10-Lemonldap-NG-Handler-SharedConf.t
|
||||
t/12-Lemonldap-NG-Handler-Jail.t
|
||||
t/13-Lemonldap-NG-Handler-Fake-Safe.t
|
||||
|
|
|
@ -59,7 +59,7 @@ BEGIN {
|
|||
Lemonldap::NG::Handler::API->thread_share($tsv);
|
||||
}
|
||||
|
||||
use Lemonldap::NG::Handler::Initialization::GlobalInit;
|
||||
use Lemonldap::NG::Handler::Reload;
|
||||
use Lemonldap::NG::Handler::Main::Jail;
|
||||
use Lemonldap::NG::Handler::Main::Headers;
|
||||
use Lemonldap::NG::Handler::Main::PostForm;
|
||||
|
@ -462,8 +462,6 @@ sub initLocalStorage {
|
|||
}
|
||||
|
||||
## @imethod void globalInit(hashRef args)
|
||||
# instanciate a GlobalInit object with variables:
|
||||
# customFunctions, useSafeJail, and safe
|
||||
# Global initialization process launches :
|
||||
# - defaultValuesInit()
|
||||
# - portalInit()
|
||||
|
@ -477,7 +475,7 @@ sub initLocalStorage {
|
|||
sub globalInit {
|
||||
my $class = shift;
|
||||
|
||||
my $globalinit = Lemonldap::NG::Handler::Initialization::GlobalInit->new(
|
||||
my $globalinit = Lemonldap::NG::Handler::Reload->new(
|
||||
customFunctions => $tsv->{customFunctions},
|
||||
useSafeJail => $tsv->{useSafeJail},
|
||||
safe => $tsv->{safe},
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Methods run at configuration reload
|
||||
package Lemonldap::NG::Handler::Initialization::GlobalInit;
|
||||
package Lemonldap::NG::Handler::Reload;
|
||||
|
||||
#use Lemonldap::NG::Handler::Main qw(:all);
|
||||
use Lemonldap::NG::Common::Safelib; #link protected safe Safe object
|
|
@ -20,7 +20,7 @@ package Lemonldap::NG::Handler::SharedConf;
|
|||
use Lemonldap::NG::Handler::Main qw(:all);
|
||||
use Lemonldap::NG::Handler::Main::Logger;
|
||||
use Lemonldap::NG::Handler::API qw(:httpCodes);
|
||||
use Lemonldap::NG::Handler::Initialization::GlobalInit;
|
||||
use Lemonldap::NG::Handler::Reload;
|
||||
use Lemonldap::NG::Common::Conf; #link protected lmConf
|
||||
use Lemonldap::NG::Common::Conf::Constants; #inherits
|
||||
use Lemonldap::NG::Handler::Main::Logger;
|
||||
|
|
|
@ -10,7 +10,7 @@ package My::Package;
|
|||
use Test::More tests => 5;
|
||||
|
||||
BEGIN {
|
||||
use_ok('Lemonldap::NG::Handler::Initialization::GlobalInit');
|
||||
use_ok('Lemonldap::NG::Handler::Reload');
|
||||
}
|
||||
|
||||
#########################
|
||||
|
@ -23,7 +23,7 @@ my $globalinit;
|
|||
open STDERR, '>/dev/null';
|
||||
|
||||
ok(
|
||||
$globalinit = Lemonldap::NG::Handler::Initialization::GlobalInit->new(
|
||||
$globalinit = Lemonldap::NG::Handler::Reload->new(
|
||||
customFunctions => "",
|
||||
useSafeJail => 1,
|
||||
),
|
Loading…
Reference in New Issue