8000 [DI] fix tracking of changes to vendor/ dirs · symfony/symfony@f4a5360 · GitHub
[go: up one dir, main page]

Skip to content

Commit f4a5360

Browse files
[DI] fix tracking of changes to vendor/ dirs
1 parent 60dac0c commit f4a5360

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,14 +1655,14 @@ private function getExpressionLanguage(): ExpressionLanguage
16551655
private function inVendors(string $path): bool
16561656
{
16571657
if (null === $this->vendors) {
1658-
$resource = new ComposerResource();
1659-
$this->vendors = $resource->getVendors();
1660-
$this->addResource($resource);
1658+
$this->vendors = (new ComposerResource())->getVendors();
16611659
}
16621660
$path = realpath($path) ?: $path;
16631661

16641662
foreach ($this->vendors as $vendor) {
16651663
if (0 === strpos($path, $vendor) && false !== strpbrk(substr($path, \strlen($vendor), 1), '/'.\DIRECTORY_SEPARATOR)) {
1664+
$this->addResource(new FileResource($vendor.'/composer/installed.json'));
1665+
16661666
return true;
16671667
}
16681668
}

0 commit comments

Comments
 (0)
0