1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00
Commit Graph

4 Commits

Author SHA1 Message Date
Nick Liu
9cf215a0be Better names for eShims classes
* \e107\Shims\All → \e107\Shims\AllShims
* \e107\Shims\Internal → \e107\Shims\InternalShims
* \e107\Shims\InternalShims → \e107\Shims\InternalShimsTrait

Fixes: #3538
2018-11-03 09:24:05 -05:00
Nick Liu
ded595d704 Renamed e_shims to eShims
To follow @myovchev's convention like eHelper

Per @CaMer0n
2018-10-31 12:32:58 -05:00
Nick Liu
b2de51dd1b Split e_shims into correct files for autoloading 2018-10-31 09:37:07 -05:00
Nick Liu
60056deb93 Support for namespaced classes; added e_shims
e_shims is an e107 v2-compatible class for the first namespaced core
class, e107\Shims\All.

e107\Shims\All is built from the e107\Shims\InternalShims trait.

e107\Shims\InternalShims currently implements a resilient replacement
for the PHP internal readfile(), which is needed by issue #3528.

As for how the new namespaced classes are handled, the e107 class
(e107_handlers/e107_class.php) has an updated e107::autoload() which
detects namespaced classes and goes to e107::autoload_namespaced().

Namespaced classes handled by e107 are in the \e107 top-level namespace,
and all sub-levels match directory paths under e_HANDLER.
2018-10-31 07:27:38 -05:00