The module- and application pipelines are explained in detail in the wiki.
It's basically hooks which are executed before and after route execution on a global (application pipelines) and per-module basis. Here's an example:
If a route is resolved to a module called FooModule, the pipelines will be invoked as follows:
Application Before Pipeline
FooModule Before Pipeline
FooModule Route Handler
FooModule After Pipeline
Application After Pipeline
The difference between the before- and after pipelines is that in the before pipeline, you have the possibility to "short circuit" the request handling. I.e. you can return a response, which will the be returned directly to the user agent, without even invoking a potential route handler.
The module- and application pipelines are explained in detail in the wiki.
It's basically hooks which are executed before and after route execution on a global (application pipelines) and per-module basis. Here's an example:
If a route is resolved to a module called
FooModule
, the pipelines will be invoked as follows:The difference between the before- and after pipelines is that in the before pipeline, you have the possibility to "short circuit" the request handling. I.e. you can return a response, which will the be returned directly to the user agent, without even invoking a potential route handler.