8000 [Config] fix id-generation for GlobResource · symfony/symfony@6adbfa2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6adbfa2

Browse files
[Config] fix id-generation for GlobResource
1 parent d863fc2 commit 6adbfa2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Config/Resource/GlobResource.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class GlobResource implements \IteratorAggregate, SelfCheckingResourceInterface
4141
*/
4242
public function __construct(?string $prefix, string $pattern, bool $recursive, bool $forExclusion = false, array $excludedPrefixes = [])
4343
{
44+
ksort($excludedPrefixes);
4445
$this->prefix = realpath($prefix) ?: (file_exists($prefix) ? $prefix : false);
4546
$this->pattern = $pattern;
4647
$this->recursive = $recursive;
@@ -62,7 +63,7 @@ public function getPrefix()
6263
*/
6364
public function __toString()
6465
{
65-
return 'glob.'.$this->prefix.$this->pattern.(int) $this->recursive;
66+
return 'glob.'.$this->prefix.(int) $this->recursive.$this->pattern.(int) $this->forExclusion.implode("\0", $this->excludedPrefixes);
6667
}
6768

6869
/**

0 commit comments

Comments
 (0)
0