Skip to content

Commit

Permalink
Merge pull request #9 from stefanpoensgen/feature/sentry-symfony-5.0
Browse files Browse the repository at this point in the history
feat: allow sentry/sentry-symfony version 5.0
  • Loading branch information
shyim authored Apr 12, 2024
2 parents e36fe8d + 486214b commit fe58a4c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"homepage": "https://friendsofshopware.com",
"license": "MIT",
"require": {
"sentry/sentry-symfony": "^4.0",
"sentry/sentry-symfony": "^4.0 || ^5.0",
"shopware/core": "~6.5.0 || ~6.6.0"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/CompilerPass/ExceptionConfigCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private function getConfig(ContainerBuilder $container, string $bundle): array
return (new Processor())
->processConfiguration(
new Configuration($debug),
$container->getExtensionConfig($bundle)
$container->getExtensionConfig($bundle),
);
}
}
6 changes: 3 additions & 3 deletions src/Subscriber/ScheduledTaskSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ScheduledTaskSubscriber implements EventSubscriberInterface
*/
public function __construct(
private readonly EntityRepository $scheduledTaskRepository,
private readonly bool $reportScheduledTasks
private readonly bool $reportScheduledTasks,
) {}

public static function getSubscribedEvents(): array
Expand Down Expand Up @@ -92,7 +92,7 @@ public function onScheduledTaskWritten(EntityWrittenEvent $event): void
ScheduledTaskDefinition::STATUS_RUNNING => CheckInStatus::inProgress(),
ScheduledTaskDefinition::STATUS_SCHEDULED => CheckInStatus::ok(),
ScheduledTaskDefinition::STATUS_FAILED => CheckInStatus::error(),
default => null
default => null,
};

if ($checkInStatus !== null) {
Expand Down Expand Up @@ -123,7 +123,7 @@ private function getCheckInId(ScheduledTaskEntity $scheduledTask): ?string
return captureCheckIn(
slug: $scheduledTask->getName(),
status: CheckInStatus::inProgress(),
monitorConfig: $this->monitorConfig($scheduledTask)
monitorConfig: $this->monitorConfig($scheduledTask),
);
}

Expand Down

0 comments on commit fe58a4c

Please sign in to comment.