Fix PHP notice when using indexes without defined types
This commit is contained in:
parent
c4a2858265
commit
64fa26e3d9
|
@ -41,13 +41,16 @@ class ContainerSource implements SourceInterface
|
||||||
$indexes = array();
|
$indexes = array();
|
||||||
foreach ($this->configArray as $config) {
|
foreach ($this->configArray as $config) {
|
||||||
$types = array();
|
$types = array();
|
||||||
foreach ($config['types'] as $typeConfig) {
|
|
||||||
$types[$typeConfig['name']] = new TypeConfig(
|
if (isset($config['types'])) {
|
||||||
$typeConfig['name'],
|
foreach ($config['types'] as $typeConfig) {
|
||||||
$typeConfig['mapping'],
|
$types[$typeConfig['name']] = new TypeConfig(
|
||||||
$typeConfig['config']
|
$typeConfig['name'],
|
||||||
);
|
$typeConfig['mapping'],
|
||||||
// TODO: handle prototypes..
|
$typeConfig['config']
|
||||||
|
);
|
||||||
|
// TODO: handle prototypes..
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$index = new IndexConfig($config['name'], $types, array(
|
$index = new IndexConfig($config['name'], $types, array(
|
||||||
|
|
Loading…
Reference in a new issue