We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3b3dac commit 04853fcCopy full SHA for 04853fc
src/Symfony/Component/DependencyInjection/ContainerBuilder.php
@@ -202,7 +202,7 @@ public function hasExtension($name)
202
*/
203
public function getResources()
204
{
205
- return array_unique($this->resources);
+ return array_values($this->resources);
206
}
207
208
/**
@@ -218,7 +218,7 @@ public function addResource(ResourceInterface $resource)
218
return $this;
219
220
221
- $this->resources[] = $resource;
+ $this->resources[(string) $resource] = $resource;
222
223
224
0 commit comments