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 c4a2858 commit 64fa26eCopy full SHA for 64fa26e
Configuration/Source/ContainerSource.php
@@ -41,13 +41,16 @@ public function getConfiguration()
41
$indexes = array();
42
foreach ($this->configArray as $config) {
43
$types = array();
44
- foreach ($config['types'] as $typeConfig) {
45
- $types[$typeConfig['name']] = new TypeConfig(
46
- $typeConfig['name'],
47
- $typeConfig['mapping'],
48
- $typeConfig['config']
49
- );
50
- // TODO: handle prototypes..
+
+ if (isset($config['types'])) {
+ foreach ($config['types'] as $typeConfig) {
+ $types[$typeConfig['name']] = new TypeConfig(
+ $typeConfig['name'],
+ $typeConfig['mapping'],
+ $typeConfig['config']
51
+ );
52
+ // TODO: handle prototypes..
53
+ }
54
}
55
56
$index = new IndexConfig($config['name'], $types, array(
0 commit comments