lemonldap-ng/lemonldap-ng-manager/KINEMATIC.md

47 lines
1.3 KiB
Markdown
Raw Normal View History

# Lemonldap::NG::Manager kinematic
## Initialization
PSGI file
|
+-> Common::PSGI::run() (Manager inheritance)
|
+-> Common::PSGI::new() unless(defined $self)
|
+-> Manager::init()
2016-02-24 09:22:50 +01:00
| |
| +-> Handler::PSGI::Router::init()
| | |
| | +-> Common::PSGI::init()
| | |
| | +-> Handler::PSGI::Base::init()
| |
| +-> Manager::<modules>::addRoutes()
| (module can be one of `Conf`, `Sessions`, `Notifications`)
| |
| +-> Common::PSGI::Router::addRoute()
|
+-> Handler::PSGI::Base::_run()
|
2016-02-24 09:22:50 +01:00
+-> if protected:
Handler::PSGI::Base::_authAndTrace()
_Common::PSGI::run()_ returns a subroutine
## HTTP responses
2016-02-24 09:22:50 +01:00
PSGI system launch the previous sub returned by Handler::PSGI::Base::\_run()
sub
2016-02-24 09:22:50 +01:00
|
+-> if protection is set:
| Lemonldap::NG::Handler::SharedConf::run()
|
+-> Common::PSGI::Router::handler ( Lemonldap::NG::Common::PSGI::Request->new() )
|
+-> Common::PSGI::Router::followPath()
|
+-> Launch the corresponding Manager::<module> subroutine declared with addRoutes()