diff --git a/DependencyInjection/Compiler/AddComponentDataResolver.php b/DependencyInjection/Compiler/AddComponentDataResolver.php
index 2f893bc..9351750 100644
--- a/DependencyInjection/Compiler/AddComponentDataResolver.php
+++ b/DependencyInjection/Compiler/AddComponentDataResolver.php
@@ -13,7 +13,7 @@ class AddComponentDataResolver implements CompilerPassInterface
/**
* {@inheritdoc}
*/
- public function process(ContainerBuilder $container)
+ public function process(ContainerBuilder $container): void
{
$actionManager = $container->findDefinition('spy_timeline.action_manager');
$componentDataResolver = $container->findDefinition('spy_timeline.resolve_component.resolver');
diff --git a/DependencyInjection/Compiler/AddDeliveryMethodCompilerPass.php b/DependencyInjection/Compiler/AddDeliveryMethodCompilerPass.php
index 47c6da5..c203fff 100644
--- a/DependencyInjection/Compiler/AddDeliveryMethodCompilerPass.php
+++ b/DependencyInjection/Compiler/AddDeliveryMethodCompilerPass.php
@@ -10,7 +10,7 @@ class AddDeliveryMethodCompilerPass implements CompilerPassInterface
/**
* {@inheritdoc}
*/
- public function process(ContainerBuilder $container)
+ public function process(ContainerBuilder $container): void
{
// we only do a call if the delivery method is immediate.
if ($container->getParameter('spy_timeline.spread.deployer.delivery') !== "immediate") {
diff --git a/DependencyInjection/Compiler/AddFilterCompilerPass.php b/DependencyInjection/Compiler/AddFilterCompilerPass.php
index 87d8787..1cc4aa9 100644
--- a/DependencyInjection/Compiler/AddFilterCompilerPass.php
+++ b/DependencyInjection/Compiler/AddFilterCompilerPass.php
@@ -10,7 +10,7 @@ class AddFilterCompilerPass implements CompilerPassInterface
/**
* {@inheritdoc}
*/
- public function process(ContainerBuilder $container)
+ public function process(ContainerBuilder $container): void
{
$filterManager = $container->getDefinition('spy_timeline.filter.manager');
diff --git a/DependencyInjection/Compiler/AddLocatorCompilerPass.php b/DependencyInjection/Compiler/AddLocatorCompilerPass.php
index 8292f4a..7d7baac 100644
--- a/DependencyInjection/Compiler/AddLocatorCompilerPass.php
+++ b/DependencyInjection/Compiler/AddLocatorCompilerPass.php
@@ -16,7 +16,7 @@ class AddLocatorCompilerPass implements CompilerPassInterface
/**
* {@inheritdoc}
*/
- public function process(ContainerBuilder $container)
+ public function process(ContainerBuilder $container): void
{
$parameterDefinitions = $this->getLocatorDefinitionsFromParameter($container);
$taggedServiceDefinitions = $this->getLocatorDefinitionsFromTaggedServices($container);
diff --git a/DependencyInjection/Compiler/AddRegistryCompilerPass.php b/DependencyInjection/Compiler/AddRegistryCompilerPass.php
index f9f6a43..f08e1d1 100644
--- a/DependencyInjection/Compiler/AddRegistryCompilerPass.php
+++ b/DependencyInjection/Compiler/AddRegistryCompilerPass.php
@@ -10,7 +10,7 @@ class AddRegistryCompilerPass implements CompilerPassInterface
/**
* {@inheritdoc}
*/
- public function process(ContainerBuilder $container)
+ public function process(ContainerBuilder $container): void
{
if (!$container->hasParameter('spy_timeline.resolve_component.doctrine_registries')) {
return;
diff --git a/DependencyInjection/Compiler/AddSpreadCompilerPass.php b/DependencyInjection/Compiler/AddSpreadCompilerPass.php
index 9e2b499..7cc5865 100644
--- a/DependencyInjection/Compiler/AddSpreadCompilerPass.php
+++ b/DependencyInjection/Compiler/AddSpreadCompilerPass.php
@@ -10,7 +10,7 @@ class AddSpreadCompilerPass implements CompilerPassInterface
/**
* {@inheritdoc}
*/
- public function process(ContainerBuilder $container)
+ public function process(ContainerBuilder $container): void
{
$alias = $container->getAlias('spy_timeline.spread.deployer');
$spreadDeployer = $container->getDefinition((string) $alias);
diff --git a/Resources/config/doctrine/Component.mongodb.xml b/Resources/config/doctrine/Component.mongodb.xml
index 7bae42e..b5c7fb0 100644
--- a/Resources/config/doctrine/Component.mongodb.xml
+++ b/Resources/config/doctrine/Component.mongodb.xml
@@ -8,6 +8,8 @@
+
+
diff --git a/Resources/config/doctrine/Component.orm.xml b/Resources/config/doctrine/Component.orm.xml
index a30751f..57f5d0b 100644
--- a/Resources/config/doctrine/Component.orm.xml
+++ b/Resources/config/doctrine/Component.orm.xml
@@ -8,5 +8,7 @@
+
+
diff --git a/SpyTimelineBundle.php b/SpyTimelineBundle.php
index dd223a0..9a7f402 100644
--- a/SpyTimelineBundle.php
+++ b/SpyTimelineBundle.php
@@ -16,7 +16,7 @@ class SpyTimelineBundle extends Bundle
/**
* @param ContainerBuilder $container
*/
- public function build(ContainerBuilder $container)
+ public function build(ContainerBuilder $container): void
{
$container->addCompilerPass(new AddSpreadCompilerPass());
$container->addCompilerPass(new AddFilterCompilerPass());
diff --git a/Tests/Units/Command/DeployActionCommandTest.php b/Tests/Units/Command/DeployActionCommandTest.php
index 407e4b0..c5b42ed 100644
--- a/Tests/Units/Command/DeployActionCommandTest.php
+++ b/Tests/Units/Command/DeployActionCommandTest.php
@@ -20,7 +20,7 @@ public function testNoTimeline()
$command = new DeployActionCommand($actionManager, $deployer, $logger);
$application = new Application();
- $application->add($command);
+ $application->addCommand($command);
$command = $application->find('spy_timeline:deploy');
@@ -43,7 +43,7 @@ public function testOneTimeline()
$command = new DeployActionCommand($actionManager, $deployer, $logger);
$application = new Application();
- $application->add($command);
+ $application->addCommand($command);
$command = $application->find('spy_timeline:deploy');
diff --git a/Tests/Units/Command/SpreadListCommandTest.php b/Tests/Units/Command/SpreadListCommandTest.php
index b0832b8..ae38380 100644
--- a/Tests/Units/Command/SpreadListCommandTest.php
+++ b/Tests/Units/Command/SpreadListCommandTest.php
@@ -17,7 +17,7 @@ public function testExecuteWithNoSpread()
$command = new SpreadListCommand($deployer);
$application = new Application();
- $application->add($command);
+ $application->addCommand($command);
$command = $application->find('spy_timeline:spreads');
@@ -38,7 +38,7 @@ public function testExecuteWithOneSpread()
$command = new SpreadListCommand($deployer);
$application = new Application();
- $application->add($command);
+ $application->addCommand($command);
$command = $application->find('spy_timeline:spreads');
diff --git a/composer.json b/composer.json
index 148311b..950032b 100644
--- a/composer.json
+++ b/composer.json
@@ -11,7 +11,7 @@
}],
"require": {
"php": ">=8.3",
- "stephpy/timeline": "^1.0",
+ "stephpy/timeline": "^1.2",
"symfony/framework-bundle": ">=5.4",
"symfony/options-resolver": ">=5.4",
"twig/twig": ">=3.0"