Page MenuHomeDevCentral

Migrate to more modern and modular PHP 7.2 code
Changes PlannedPublic

Authored by dereckson on Oct 14 2018, 03:17.

Details

Reviewers
dereckson
Summary

Transfer the utility methods responsibility to Keruald OmniTools.

Use PSR-4 namespace Keruald\Core for main features.
The configuration, error global functions and not yet migrated
functions are kept.

Offer a transparent migration path to convert user passwords from legacy MD5
to a modern hash (by default, under PHP 7.2, the default is Argon2i) when
they log in successfully.

Use type hints for signature methods.

Test Plan

Build a small site with a login form and some MD5 password to migrate.

Dump session.

Diff Detail

Repository
rK Keruald
Lint
No Linters Available
Unit
No Unit Test Coverage
Branch
migration (branched from master)
Build Status
Buildable 2998
Build 3246: arc lint + arc unit

Event Timeline

dereckson requested review of this revision.Oct 14 2018, 03:17
dereckson created this revision.
dereckson updated this revision to Diff 4849.Oct 14 2018, 03:17

Cleanup core.php

dereckson updated this revision to Diff 4872.Oct 15 2018, 21:11

Use mysqli classes from root namespace

dereckson planned changes to this revision.Oct 16 2018, 20:25
dereckson added inline comments.
src/Database/Database.php
67

Class MUST be fully qualified with namespace.