Skip to content

Commit

Permalink
Merge pull request #27800 from colemanw/angCheckBackport
Browse files Browse the repository at this point in the history
Angular - Backport status check from #27798
  • Loading branch information
mattwire authored Oct 16, 2023
2 parents ab46b79 + e6fe77f commit fb3590d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions CRM/Utils/Check/Component/Env.php
Original file line number Diff line number Diff line change
Expand Up @@ -1106,4 +1106,25 @@ public function checkPHPIntlExists() {
return $messages;
}

public function checkAngularModuleSettings() {
$messages = [];
$modules = Civi::container()->get('angular')->getModules();
foreach ($modules as $name => $module) {
if (!empty($module['settings'])) {
$messages[] = new CRM_Utils_Check_Message(
__FUNCTION__ . $name,
ts('The Angular file "%1" from extension "%2" must be updated to use "settingsFactory" instead of "settings". <a %3>Developer info...</a>', [
1 => $name,
2 => $module['ext'],
3 => 'target="_blank" href="https://github.com/civicrm/civicrm-core/pull/19052"',
]),
ts('Unsupported Angular Setting'),
\Psr\Log\LogLevel::WARNING,
'fa-code'
);
}
}
return $messages;
}

}

0 comments on commit fb3590d

Please sign in to comment.