Skip to content
Permalink
Browse files

added modification time of composer to container cache key

Should rebuild container on 'composer update'
  • Loading branch information
dg committed Nov 22, 2019
1 parent 69c7f50 commit 36673dcc5077bb0f1a5556d7184124cb94af2e08
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/Bootstrap/Configurator.php
@@ -244,7 +244,13 @@ public function loadContainer(): string
);
$class = $loader->load(
[$this, 'generateContainer'],
[$this->parameters, array_keys($this->dynamicParameters), $this->configs, PHP_VERSION_ID - PHP_RELEASE_VERSION]
[
$this->parameters,
array_keys($this->dynamicParameters),
$this->configs,
PHP_VERSION_ID - PHP_RELEASE_VERSION, // minor PHP version
class_exists(ClassLoader::class) ? filemtime((new \ReflectionClass(ClassLoader::class))->getFilename()) : null, // composer update
]
);
return $class;
}

0 comments on commit 36673dc

Please sign in to comment.
You can’t perform that action at this time.