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

Use the composer autoloader to load files. #1494

Merged
merged 4 commits into from
Mar 30, 2021
Merged

Conversation

jpwhite4
Copy link
Member

@jpwhite4 jpwhite4 commented Feb 9, 2021

This change switches the XDMoD code to be loaded with the composer
loader rather than the hybrid composer and require and custom loader.
The main reason for this change is to switch the ETL directory to use
a psr-4 loader thus allowing xdmod modules to extend the ETL framework.
Previously it was not possible for a module to add a new DataEndpoint
due to the way classes were loaded.

The Appkernels module still uses the linker.json so this code path
is not modified at this time.

Also there was an unused file classes/DB/DBModel/TableColumn.php
rather than add this to the loader path I just removed it.

Also I switched on the optimizer for composer.

This change switches the XDMoD code to be loaded with the composer
loader rather than the hybrid composer and require and custom loader.
The main reason for this change is to switch the ETL directory to use
a psr-4 loader thus allowing xdmod modules to extend the ETL framework.
Previously it was not possible for a module to add a new DataEndpoint
due to the way classes were loaded.

The Appkernels module still uses the linker.json so this code path
is not modified at this time.

Also there was an unused file classes/DB/DBModel/TableColumn.php
rather than add this to the loader path I just removed it.

Also I switched on the optimizer for composer.
@jpwhite4 jpwhite4 added the maintenance / code quality Improvements and code cleanup. Not a new feature or enhancement to existing functionality. label Feb 24, 2021
@jpwhite4 jpwhite4 added this to the 9.5.0 milestone Feb 24, 2021
@jpwhite4 jpwhite4 requested a review from eiffel777 March 29, 2021 14:03
@jpwhite4 jpwhite4 merged commit aecd013 into ubccr:xdmod9.5 Mar 30, 2021
@jpwhite4 jpwhite4 deleted the linker branch March 30, 2021 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance / code quality Improvements and code cleanup. Not a new feature or enhancement to existing functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants