Page MenuHomeDevCentral

Refactor autoloader
ClosedPublic

Authored by dereckson on Apr 20 2018, 14:04.
Tags
None
Referenced Files
F35320103: D1617.diff
Thu, Jul 9, 09:32
F35312349: D1617.diff
Thu, Jul 9, 07:26
F35311047: D1617.id4130.diff
Thu, Jul 9, 07:05
F35311032: D1617.id4131.diff
Thu, Jul 9, 07:05
F35293062: D1617.diff
Thu, Jul 9, 02:03
F35287246: D1617.id4130.diff
Wed, Jul 8, 23:00
F35263440: D1617.id4131.diff
Wed, Jul 8, 13:42
Unknown Object (File)
Wed, Jul 8, 06:37
Subscribers
None

Details

Summary

Split PSR-4 logic from base logic.

Allow to better check if we can include a file,
to adhere to PSR-4 specification we can't throw errors.

This lets us with some -er classes, as PHP code files and namespaces
aren't objects we can correctly. This could evolve through a better
reflection library with CodeFile and Namespace classes. We could
then extend Namespace into PSR4Namespace and get rid of -er.

Test Plan

Tests still pass

Diff Detail

Repository
rKOT Keruald OmniTools
Lint
Lint Passed
Unit
Tests Passed
Branch
PSR-4-autoloader
Build Status
Buildable 2540
Build 2788: arc lint + arc unit

Event Timeline

dereckson created this revision.

Remove StringUtilities typo. Declare strict_types for PSR4\Autoloader.

This revision is now accepted and ready to land.Apr 20 2018, 14:07
This revision was automatically updated to reflect the committed changes.