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.
2 parents 3c5a287 + b8a4f9c commit c771c63Copy full SHA for c771c63
Classes/Domain/Model/Index.php
@@ -122,6 +122,13 @@ public function __construct(string $name, Client $client = null)
122
public function injectSettings(array $settings): void
123
{
124
$this->settings = $settings;
125
+ $indexSettings = $this->getSettings();
126
+ if (!isset($indexSettings['prefix']) || empty($indexSettings['prefix'])) {
127
+ return;
128
+ }
129
+ // This is obviously a side effect but can only be done after injecting settings
130
+ // and it needs to be done as early as possible
131
+ $this->name = $settings['prefix'] . '-' . $this->name;
132
}
133
134
/**
0 commit comments