Skip to content

Commit

Permalink
[EasyBugsnag] Fix symfony integration for aws ecs fargate (#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
natepage committed Jul 2, 2021
1 parent 9c4f5fd commit 00fb12d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public function load(array $configs, ContainerBuilder $container): void
BridgeConstantsInterface::PARAM_AWS_ECS_FARGATE_META_URL,
$config['aws_ecs_fargate_meta_url']
);

$loader->load('aws_ecs_fargate.php');
}

if ($config['session_tracking'] ?? false) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

declare(strict_types=1);

use EonX\EasyBugsnag\Bridge\BridgeConstantsInterface;
use EonX\EasyBugsnag\Configurators\AwsEcsFargateConfigurator;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

Expand All @@ -11,5 +12,8 @@
->autoconfigure()
->autowire();

$services->set(AwsEcsFargateConfigurator::class);
$services
->set(AwsEcsFargateConfigurator::class)
->arg('$storageFilename', '%' . BridgeConstantsInterface::PARAM_AWS_ECS_FARGATE_META_STORAGE_FILENAME . '%')
->arg('$url', '%' . BridgeConstantsInterface::PARAM_AWS_ECS_FARGATE_META_URL . '%');
};

0 comments on commit 00fb12d

Please sign in to comment.