Skip to content

Commit

Permalink
chore: revert previous change
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Jan 12, 2025
1 parent e5f4808 commit 1d93e6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/Migration/Version7000Date20221028022904.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public function __construct(
* {"commonName":"Test Company","names":[{"id":"C","value":"BR"},{"id":"O","value":"Organization"},{"id":"OU","value":"Organization Unit"}]}
*/
public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options): void {
$rootCert = $this->appConfig->getValueArray(Application::APP_ID, 'rootCert');
$rootCert = $this->appConfig->getValueString(Application::APP_ID, 'rootCert');
$rootCert = json_decode($rootCert, true);
if (is_array($rootCert) && array_key_exists('names', $rootCert)) {
$names = [];
foreach ($rootCert['names'] as $key => $value) {
Expand Down
3 changes: 2 additions & 1 deletion lib/Migration/Version7000Date20230327094452.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public function __construct(
* {"commonName":"Test Company","names":{"C":"BR","O":"Organization","OU":"Organization Unit"}}
*/
public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options): void {
$rootCert = $this->appConfig->getValueArray(Application::APP_ID, 'rootCert');
$rootCert = $this->appConfig->getValueString(Application::APP_ID, 'rootCert');
$rootCert = json_decode($rootCert, true);
if (is_array($rootCert) && array_key_exists('names', $rootCert)) {
$names = [];
foreach ($rootCert['names'] as $value) {
Expand Down

0 comments on commit 1d93e6c

Please sign in to comment.