Use a better container cache key
3 unresolved threads
3 unresolved threads
Closes #3509069
Merge request reports
Activity
- Resolved by Björn Brala
- Resolved by Alex Pott
- Resolved by Alex Pott
added 1 commit
- bd038abb - Move the pre autoload dump code to somewhere its runs for all Drupal projects
19 20 * The event. 20 21 */ 21 22 public static function preAutoloadDump(Event $event) { 22 // Get the configured vendor directory. 23 $vendor_dir = $event->getComposer()->getConfig()->get('vendor-dir'); - Comment on lines 21 to -23
So interestingly none of this was ever running for sites built from core recommended because this only works via the scripts in the root composer.json of the core repo. I think moving this code to scaffold will solve this - but scaffold does not run if you install Drupal from core git repo... so we need to link the two... fun.
192 $autoload['classmap'] = array_merge($autoload['classmap'], [ 193 $vendor_dir . '/symfony/http-kernel/HttpKernel.php', 194 $vendor_dir . '/symfony/http-kernel/HttpKernelInterface.php', 195 $vendor_dir . '/symfony/http-kernel/TerminableInterface.php', 196 ]); 197 } 198 if ($repository->findPackage('symfony/dependency-injection', $constraint)) { 199 $autoload['classmap'] = array_merge($autoload['classmap'], [ 200 $vendor_dir . '/symfony/dependency-injection/ContainerInterface.php', 201 ]); 202 } 203 if ($repository->findPackage('psr/container', $constraint)) { 204 $autoload['classmap'] = array_merge($autoload['classmap'], [ 205 $vendor_dir . '/psr/container/src/ContainerInterface.php', 206 ]); 207 } - Comment on lines +177 to +207
- Resolved by Alex Pott
added 104 commits
-
c3da7dfe...228328d2 - 103 commits from branch
project:11.x
- 93274450 - Use a better container cache key
-
c3da7dfe...228328d2 - 103 commits from branch
- Resolved by Alex Pott
added 399 commits
-
93274450...e255c27d - 398 commits from branch
project:11.x
- f2232192 - Use a better container cache key
-
93274450...e255c27d - 398 commits from branch
- Resolved by Alex Pott
- Resolved by Alex Pott
- Resolved by Alex Pott
- Resolved by Alex Pott
- Resolved by Alex Pott
- Resolved by Alex Pott
added 1 commit
- 027ec232 - Make drupal/core dependent on drupal/core-composer-scaffold
added 1 commit
- 3cb9a813 - Borrowing code from \Composer\Autoload\AutoloadGenerator and...
added 61 commits
-
3cb9a813...6f029005 - 50 commits from branch
project:11.x
- 933d585c - 1 earlier commit
- 922d4273 - Add missing docs
- 897a7430 - Apply 6 suggestion(s) to 2 file(s)
- 10cc0bae - Fix suggestion
- 8acbc05d - Make drupal/core dependent on drupal/core-composer-scaffold
- b6db7ed6 - Fix test
- 36643938 - Fixed typo.
- 89f40c60 - Added to README.
- 69c2a932 - Added comment about file being generated.
- 4690e620 - Borrowing code from \Composer\Autoload\AutoloadGenerator and...
- fdb487a3 - Update composer.lock after rebase
Toggle commit list-
3cb9a813...6f029005 - 50 commits from branch
added 67 commits
-
fdb487a3...41456293 - 66 commits from branch
project:11.x
- ccb69ac2 - Merge branch '11.x' into 3509069-container-cache-key
-
fdb487a3...41456293 - 66 commits from branch
203 204 */ 204 205 public static function getApcuPrefix($identifier, $root, $site_path = '') { 205 206 if (static::get('apcu_ensure_unique_prefix', TRUE)) { 206 return 'drupal.' . $identifier . '.' . \Drupal::VERSION . '.' . static::get('deployment_identifier') . '.' . hash_hmac('sha256', $identifier, static::get('hash_salt') . '.' . $root . '/' . $site_path); 207 return 'drupal.' . $identifier . '.' . DrupalInstalled::VERSIONS_HASH . '.' . static::get('deployment_identifier') . '.' . hash_hmac('sha256', $identifier, static::get('hash_salt') . '.' . $root . '/' . $site_path); assigned to @alexpott
Please register or sign in to reply