Clear hook list on configuration reload (#2463)
This commit is contained in:
parent
78e71886d1
commit
31d0f26174
|
@ -127,6 +127,7 @@ sub init {
|
||||||
$self->loadedModules( {} );
|
$self->loadedModules( {} );
|
||||||
$self->afterSub( {} );
|
$self->afterSub( {} );
|
||||||
$self->aroundSub( {} );
|
$self->aroundSub( {} );
|
||||||
|
$self->hook( {} );
|
||||||
|
|
||||||
# Insert `reloadConf` in handler reload stack
|
# Insert `reloadConf` in handler reload stack
|
||||||
Lemonldap::NG::Handler::Main->onReload( $self, 'reloadConf' );
|
Lemonldap::NG::Handler::Main->onReload( $self, 'reloadConf' );
|
||||||
|
@ -213,6 +214,7 @@ sub reloadConf {
|
||||||
$self->afterSub( {} );
|
$self->afterSub( {} );
|
||||||
$self->aroundSub( {} );
|
$self->aroundSub( {} );
|
||||||
$self->spRules( {} );
|
$self->spRules( {} );
|
||||||
|
$self->hook( {} );
|
||||||
|
|
||||||
# Load conf in portal object
|
# Load conf in portal object
|
||||||
foreach my $key ( keys %$conf ) {
|
foreach my $key ( keys %$conf ) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user