Skip to content

Commit

Permalink
Use TypedDatabase with non-default connection for Technicolor keys (
Browse files Browse the repository at this point in the history
#447)

And some other minor touches
  • Loading branch information
spaze authored Dec 19, 2024
2 parents f13af02 + 1c0c663 commit 00854ad
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/config/services.neon
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ services:
- MichalSpacekCz\Training\Trainings\Trainings
- MichalSpacekCz\Training\Venues\TrainingVenues
- MichalSpacekCz\Twitter\TwitterCards
- MichalSpacekCz\UpcKeys\Technicolor(@database.upcKeys.explorer, apiUrl: %awsLambda.upcKeys.url%, apiKey: %awsLambda.upcKeys.apiKey%)
- MichalSpacekCz\UpcKeys\Technicolor(@database.upcKeys.explorer, @typedDatabase.upcKeys, apiUrl: %awsLambda.upcKeys.url%, apiKey: %awsLambda.upcKeys.apiKey%)
- MichalSpacekCz\UpcKeys\Ubee(@typedDatabase.upcKeys)
- MichalSpacekCz\UpcKeys\UpcKeys(routers: [@MichalSpacekCz\UpcKeys\Technicolor, @MichalSpacekCz\UpcKeys\Ubee])
- MichalSpacekCz\User\Manager(passwordEncryption: @passwordEncryption, permanentLoginInterval: %permanentLogin.interval%)
Expand Down
1 change: 0 additions & 1 deletion app/public/www.michalspacek.cz/i/css/upc/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ h3 { color: #777; }
#result form { text-align: center; }
#frm-ssid-ssid { width: 100px; }
#result table { margin: 2em auto; }
#result tbody, #result tfoot { font-size: 120%; }
#result td {
width: 9em;
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion app/src/Http/Client/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private function request(HttpClientRequest $request, $context): HttpClientRespon
if ($result === false) {
throw new HttpClientRequestException($request->getUrl());
}
if (is_array($options['ssl'])) {
if (isset($options['ssl']) && is_array($options['ssl'])) {
$certificate = isset($options['ssl']['peer_certificate']) && $options['ssl']['peer_certificate'] instanceof OpenSSLCertificate
? $options['ssl']['peer_certificate']
: null;
Expand Down

0 comments on commit 00854ad

Please sign in to comment.