Page MenuHomeDevCentral

Refactor autoloader
ClosedPublic

Authored by dereckson on Apr 20 2018, 14:04.
Tags
None
Referenced Files
F11303090: D1617.id4131.diff
Fri, Aug 22, 06:19
F11303086: D1617.id4130.diff
Fri, Aug 22, 06:15
F11303081: D1617.id4132.diff
Fri, Aug 22, 06:13
F11286292: D1617.diff
Thu, Aug 21, 16:30
Unknown Object (File)
Mon, Aug 18, 09:03
Unknown Object (File)
Fri, Aug 15, 16:08
Unknown Object (File)
Fri, Aug 15, 14:28
Unknown Object (File)
Fri, Aug 15, 12:57
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 Not Applicable
Unit
Tests Not Applicable

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.