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 04054b7 commit def1082Copy full SHA for def1082
lib/Container.php
@@ -271,4 +271,12 @@ public function hasParameter($name)
271
{
272
return array_key_exists($name, $this->config);
273
}
274
+
275
+ /**
276
+ * @return class-string[]
277
+ */
278
+ public function getExtensionClasses(): array
279
+ {
280
+ return $this->extensionClasses;
281
+ }
282
tests/Unit/ContainerTest.php
@@ -110,6 +110,9 @@ public function testRegisterExtension()
110
$object = $container->get('foobar');
111
$this->assertInstanceOf('stdClass', $object);
112
$this->assertEquals('bar', $object->foobar);
113
+ $this->assertEquals([
114
+ __NAMESPACE__ . '\\TestExtension',
115
+ ], $container->getExtensionClasses());;
116
117
118
/**
0 commit comments