Allow apps to have their own autoloader#6853
Merged
LukasReschke merged 4 commits intomasterfrom Oct 19, 2017
Merged
Conversation
Member
|
Can we add the generation of this to |
This will allow apps to also have a proper classmap and authorative autoloader. Currently if a file: <appdir>/composer/autoload.php exists we will use it. Else we keep the current behavior. Signed-off-by: Roeland Jago Douma <[email protected]>
Signed-off-by: Roeland Jago Douma <[email protected]>
Signed-off-by: Roeland Jago Douma <[email protected]>
14bd7ba to
d714d46
Compare
Codecov Report
@@ Coverage Diff @@
## master #6853 +/- ##
===========================================
- Coverage 53.05% 52.9% -0.15%
- Complexity 22688 22765 +77
===========================================
Files 1430 1437 +7
Lines 88218 88457 +239
Branches 1349 1349
===========================================
- Hits 46802 46797 -5
- Misses 41416 41660 +244
|
d714d46 to
9c9f2fa
Compare
Signed-off-by: Roeland Jago Douma <[email protected]>
9c9f2fa to
ff9f325
Compare
Member
Author
|
@nickvergessen updated |
Member
Author
|
K lets do this. Then I can slowly migrate the other apps later :) |
LukasReschke
approved these changes
Oct 19, 2017
4 tasks
Member
|
Docs at nextcloud/documentation#9573. Welcome to the |
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On our current setup we do over 500 calls to find_file for autoloading. This seems a bit to excessive and is not required IMO.
In case there is a file called:
<appdir>/composer/autoload.phpwe will load that as the autoloader for this app.If you have this autoloader file we will no longer load via the legacy autoloader.
Comments are welcome.
Todo:
build/autoloa.....sh