Skip to content

Commit 1fc90a9

Browse files
committed
migrate component properties
1 parent f3c9ee3 commit 1fc90a9

12 files changed

+16
-12
lines changed

DependencyInjection/Compiler/AddComponentDataResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AddComponentDataResolver implements CompilerPassInterface
1313
/**
1414
* {@inheritdoc}
1515
*/
16-
public function process(ContainerBuilder $container)
16+
public function process(ContainerBuilder $container): void
1717
{
1818
$actionManager = $container->findDefinition('spy_timeline.action_manager');
1919
$componentDataResolver = $container->findDefinition('spy_timeline.resolve_component.resolver');

DependencyInjection/Compiler/AddDeliveryMethodCompilerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class AddDeliveryMethodCompilerPass implements CompilerPassInterface
1010
/**
1111
* {@inheritdoc}
1212
*/
13-
public function process(ContainerBuilder $container)
13+
public function process(ContainerBuilder $container): void
1414
{
1515
// we only do a call if the delivery method is immediate.
1616
if ($container->getParameter('spy_timeline.spread.deployer.delivery') !== "immediate") {

DependencyInjection/Compiler/AddFilterCompilerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class AddFilterCompilerPass implements CompilerPassInterface
1010
/**
1111
* {@inheritdoc}
1212
*/
13-
public function process(ContainerBuilder $container)
13+
public function process(ContainerBuilder $container): void
1414
{
1515
$filterManager = $container->getDefinition('spy_timeline.filter.manager');
1616

DependencyInjection/Compiler/AddLocatorCompilerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class AddLocatorCompilerPass implements CompilerPassInterface
1616
/**
1717
* {@inheritdoc}
1818
*/
19-
public function process(ContainerBuilder $container)
19+
public function process(ContainerBuilder $container): void
2020
{
2121
$parameterDefinitions = $this->getLocatorDefinitionsFromParameter($container);
2222
$taggedServiceDefinitions = $this->getLocatorDefinitionsFromTaggedServices($container);

DependencyInjection/Compiler/AddRegistryCompilerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class AddRegistryCompilerPass implements CompilerPassInterface
1010
/**
1111
* {@inheritdoc}
1212
*/
13-
public function process(ContainerBuilder $container)
13+
public function process(ContainerBuilder $container): void
1414
{
1515
if (!$container->hasParameter('spy_timeline.resolve_component.doctrine_registries')) {
1616
return;

DependencyInjection/Compiler/AddSpreadCompilerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class AddSpreadCompilerPass implements CompilerPassInterface
1010
/**
1111
* {@inheritdoc}
1212
*/
13-
public function process(ContainerBuilder $container)
13+
public function process(ContainerBuilder $container): void
1414
{
1515
$alias = $container->getAlias('spy_timeline.spread.deployer');
1616
$spreadDeployer = $container->getDefinition((string) $alias);

Resources/config/doctrine/Component.mongodb.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<field name="model" fieldName="model" type="string" />
99
<field name="identifier" fieldName="identifier" type="string" />
1010
<field name="hash" fieldName="hash" type="string" />
11+
<field name="identifierMigrated" fieldName="identifier_migrated" type="string" length="255" nullable="true" />
12+
<field name="hashMigrated" fieldName="hash_migrated" type="string" length="255" nullable="true" unique="true" />
1113
<indexes>
1214
<index>
1315
<key name="model" order="asc" />

Resources/config/doctrine/Component.orm.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@
88
<field name="model" column="model" type="string" length="255" />
99
<field name="identifier" column="identifier" type="array" />
1010
<field name="hash" column="hash" type="string" unique="true" />
11+
<field name="identifierMigrated" column="identifier_migrated" type="string" length="255" nullable="true" />
12+
<field name="hashMigrated" column="hash_migrated" type="string" length="255" nullable="true" unique="true" />
1113
</mapped-superclass>
1214
</doctrine-mapping>

SpyTimelineBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class SpyTimelineBundle extends Bundle
1616
/**
1717
* @param ContainerBuilder $container
1818
*/
19-
public function build(ContainerBuilder $container)
19+
public function build(ContainerBuilder $container): void
2020
{
2121
$container->addCompilerPass(new AddSpreadCompilerPass());
2222
$container->addCompilerPass(new AddFilterCompilerPass());

Tests/Units/Command/DeployActionCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function testNoTimeline()
2020
$command = new DeployActionCommand($actionManager, $deployer, $logger);
2121

2222
$application = new Application();
23-
$application->add($command);
23+
$application->addCommand($command);
2424

2525
$command = $application->find('spy_timeline:deploy');
2626

@@ -43,7 +43,7 @@ public function testOneTimeline()
4343
$command = new DeployActionCommand($actionManager, $deployer, $logger);
4444

4545
$application = new Application();
46-
$application->add($command);
46+
$application->addCommand($command);
4747

4848
$command = $application->find('spy_timeline:deploy');
4949

0 commit comments

Comments
 (0)