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

Optimize requiring of autoloader #9

Merged
merged 1 commit into from
Aug 28, 2024
Merged

Conversation

Aeliot-Tm
Copy link
Owner

@Aeliot-Tm Aeliot-Tm commented Aug 28, 2024

Order of used autoloader:

  1. Defined by Composer via $GLOBALS['_composer_autoload_path']
  2. Relative to installed in consuming (client's) project
  3. Relative to self vendors installed on CI
  4. +1 and +2 parent's directory with installed vendors (reserved positions)

The first one used if variable is defined. Others used if file exists. Otherwise exception is thrown.

@Aeliot-Tm Aeliot-Tm merged commit 81f4975 into main Aug 28, 2024
4 checks passed
@Aeliot-Tm Aeliot-Tm deleted the optimise-autoloader-detection branch August 28, 2024 16:40
@Aeliot-Tm Aeliot-Tm self-assigned this Aug 30, 2024
@Aeliot-Tm Aeliot-Tm added the enhancement New feature or request label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant