https://github.com/javanile/vtiger-preload
Discussion about preload on vtiger
https://github.com/javanile/vtiger-preload
Last synced: 3 months ago
JSON representation
Discussion about preload on vtiger
- Host: GitHub
- URL: https://github.com/javanile/vtiger-preload
- Owner: javanile
- License: mit
- Created: 2022-01-19T17:59:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-20T17:16:07.000Z (over 3 years ago)
- Last Synced: 2025-02-04T16:50:35.364Z (5 months ago)
- Language: Hack
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🐯 vtiger (preload)
This is where we discuss and decide once and for all how to implement preload in vtiger.
## What is 'preload'?
The 'preload' is a PHP section used to run code before every kind of requests and for each requests to which the application is targeted.
This is a middle stage between configuration loading and application entrypoints or runtime.## Why 'preload' is important?
Complex application can have differents entrypoints, for examples vtiger supports various [entrypoints](#vtiger-entrypoints). This means that if I want a portion of my custom code is executed into all of entrypoints I need to copy it into everyone, this is bad. This is the main reason why we need to define an offial 'preload' stage for all developer. For vtiger develper this means that 'preload' is before `Loader.php` but after `config.inc.php`.
## Vtiger entrypoints
Here all the official PHP entrypoints supported by vtiger are listed. Any entrypoint not present in this list should not perform the 'preload' stage.
- index.php
- webservice.php## Application stages
This is how the various stages are loaded in runtime.
