Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2. Replace direct access to PHP superglobals by usage of a specialized class #73

Open
agilare opened this issue Sep 6, 2024 · 0 comments
Assignees
Labels

Comments

@agilare
Copy link
Owner

agilare commented Sep 6, 2024

Like HttpFundation, Aura.Http

Inventaire de l'utilisations des superglobales dans l'application (09.2024) :

  • $GLOBALS : unused
  • $_SERVER : mostly (over)used with PHP_SELF (for navigation, links), SERVER_PROTOCOL... replace with a Request wrapper
  • $_GET : mostly used for entities ids and transmission of navigation prefs (date, page, filtering...)
  • $_POST : used in all forms
  • $_FILES : used in event, lieu, orga forms
  • $_COOKIE : used for rememberme, banner, region
  • $_SESSION : widely used to get current user data (id, groupe, region) in order to check user authorizations, apply preferences; flash messages
  • $_REQUEST : unused
  • $_ENV : only used in API tests
@agilare agilare changed the title Replace direct access to PHP superglobals by usage of a specialized class 2. Replace direct access to PHP superglobals by usage of a specialized class Sep 9, 2024
@agilare agilare moved this to Todo in Modernization Sep 9, 2024
@agilare agilare self-assigned this Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant