Skip to content

Commit

Permalink
Additional commit for CFM-42
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Jan 31, 2023
1 parent dc8e752 commit 9aa6e82
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions app/src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,20 @@ public function bootstrap(): void

// Load more plugins here

$Plugins = TableRegistry::getTableLocator()->get('Plugins');
try {
$Plugins = TableRegistry::getTableLocator()->get('Plugins');

$activePlugins = $Plugins->find('active')->all();
$activePlugins = $Plugins->find('active')->all();

foreach($activePlugins as $p) {
$this->addPlugin($p->plugin);
foreach($activePlugins as $p) {
$this->addPlugin($p->plugin);
}
}
catch(\Cake\Database\Exception\DatabaseException $e) {
// Most likely we are performing the initial database setup and
// the plugins table is missing.
}
// Let any other exception bubble up
}

/**
Expand Down

0 comments on commit 9aa6e82

Please sign in to comment.