Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Apr 2015 at 18:26 UTC
Updated:
4 May 2015 at 11:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
webflo commentedComment #2
webflo commentedComment #3
webflo commentedComment #4
moshe weitzman commentedAny idea why they were added to classmap in the first place?
Comment #5
berdir#2253593: Stop classloader searching filesystem for classes before drupal_classloader() is called
That's why. They are loaded before we can set up the configurable classloader, so we can't cache them with apc classloader.
Comment #6
webflo commentedOk, new approach. We could use a composer script event to add the necessary to composers classmap. Script events are executed on root packages only. This means the script wont run if we require drupal/core as composer dependency.
Comment #7
webflo commentedComment #8
webflo commentedComment #9
berdirIf that is comparable for performance then I guess it is fine. Probably needs feedback from @neclimdul and @Fabianx.
Comment #10
fabianx commentedOkay, that is very great!
It means it will be pretty simple to add a full classmap, too for those that want to use a full classmap.
RTBC, thanks for the ping in the other issue Berdir.
Comment #11
alexpottThis issue is a normal task so we need to outline how it fits within the allowable Drupal 8 beta criteria. Can someone add Drupal 8 beta phase evaluation template to the issue summary.
This comment is not in the correct format and can just be removed.
Comment #12
webflo commentedComment #13
webflo commentedComment #14
webflo commentedUpdated the Beta phase evaluation and removed the comment.
Comment #15
fabianx commentedUpdated beta, this is a bug and not a task as composer is broken.
Comment #16
alexpottThis issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 21b27e3 and pushed to 8.0.x. Thanks!
Comment #18
bojanz commentedI don't see a reply to Berdir's comment in #9.
Won't the root composer.json need to add the pre-autoload-dump command too, to ensure that it ends up with those files in the classmap as expected?
Comment #19
fabianx commented#18:
1. As the generated classmap is the same, the performance is the same.
2. I cannot speak to the composer vs. root composer part, but I suspect it is not needed as that one just references core/composer.json?
@webflo: ^^