Skip to content

Commit c341825

Browse files
committed
WIP: point telemetry-bundle to dev-main
1 parent 393bcc3 commit c341825

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

composer.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"sylius/resource-bundle": "^1.11",
2020
"sylius/sylius": "~1.13.0 || ~1.14.0",
2121
"symfony/mailer": "^5.4.21 || ^6.4",
22-
"sylius/telemetry-bundle": "^1.0"
22+
"sylius/telemetry": "^1.0"
2323
},
2424
"require-dev": {
2525
"behat/behat": "^3.6.1",
@@ -96,5 +96,11 @@
9696
"vendor/bin/ecs check src/ spec/ --fix"
9797
]
9898
},
99-
"prefer-stable": true
99+
"prefer-stable": true,
100+
"repositories": [
101+
{
102+
"type": "vcs",
103+
"url": "https://github.com/Sylius/Telemetry"
104+
}
105+
]
100106
}

src/SyliusPayPalPlugin.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,19 @@
1414
namespace Sylius\PayPalPlugin;
1515

1616
use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait;
17+
use Symfony\Component\DependencyInjection\ContainerBuilder;
1718
use Symfony\Component\HttpKernel\Bundle\Bundle;
1819

20+
use Sylius\Telemetry\TelemetryCompilerPass;
21+
1922
final class SyliusPayPalPlugin extends Bundle
2023
{
2124
use SyliusPluginTrait;
25+
26+
public function build(ContainerBuilder $container): void
27+
{
28+
parent::build($container);
29+
30+
$container->addCompilerPass(new TelemetryCompilerPass());
31+
}
2232
}

0 commit comments

Comments
 (0)