Skip to content

Commit 9fc0394

Browse files
committed
Add support for config file overrides
1 parent 1f9038f commit 9fc0394

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/SynapsePlugin.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ public function bootstrap(PluginApplicationInterface $app): void
3232
{
3333
parent::bootstrap($app);
3434

35-
// Load plugin configuration
36-
$configPath = $this->getConfigPath();
37-
if (file_exists($configPath . 'synapse.php')) {
38-
Configure::load('Synapse.synapse');
35+
Configure::load('Synapse.synapse');
36+
37+
// Load app specific config file.
38+
if (file_exists(ROOT . DS . 'config' . DS . 'app_synapse.php')) {
39+
Configure::load('app_synapse');
3940
}
4041
}
4142

0 commit comments

Comments
 (0)