Skip to content

Commit 6028816

Browse files
committed
Recompile DIC if vendor/attributes.php changes
1 parent a531474 commit 6028816

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/DependencyInjection/Configurator.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,18 @@ public function loadContainer(): string
7575
$this->staticParameters['debugMode'],
7676
);
7777

78+
$attributesPhp = __DIR__ . '/../../vendor/attributes.php';
79+
7880
$className = $loader->load(
7981
[$this, 'generateContainer'],
80-
[$this->staticParameters, array_keys($this->dynamicParameters), $this->configs, PHP_VERSION_ID - PHP_RELEASE_VERSION, NeonAdapter::CACHE_KEY, $this->getAllConfigFilesHashes()],
82+
[
83+
$this->staticParameters,
84+
array_keys($this->dynamicParameters),
85+
$this->configs,
86+
PHP_VERSION_ID - PHP_RELEASE_VERSION,
87+
is_file($attributesPhp) ? sha1_file($attributesPhp) : 'attributes-missing',
88+
NeonAdapter::CACHE_KEY, $this->getAllConfigFilesHashes(),
89+
],
8190
);
8291

8392
if ($this->journalContainer) {

0 commit comments

Comments
 (0)