change FilterInterface::describeAction signature to include context

This commit is contained in:
2025-04-24 21:48:00 +02:00
parent 66c089e862
commit 176bff0551
116 changed files with 241 additions and 124 deletions

View File

@@ -2,6 +2,7 @@
namespace Utils\Rector\Tests\ChillBundleAddFormDefaultDataOnExportFilterAggregatorRector\Fixture;
use Chill\MainBundle\Export\ExportGenerationContext;
use Chill\MainBundle\Export\FilterInterface;
use Chill\MainBundle\Form\Type\PickRollingDateType;
use Chill\MainBundle\Service\RollingDate\RollingDate;
@@ -11,7 +12,7 @@ use Symfony\Component\Form\FormBuilderInterface;
class MyClass implements FilterInterface
{
public function describeAction($data, $format = 'string')
public function describeAction($data, ExportGenerationContext $context, $format = 'string')
{
// TODO: Implement describeAction() method.
}
@@ -57,6 +58,7 @@ class MyClass implements FilterInterface
namespace Utils\Rector\Tests\ChillBundleAddFormDefaultDataOnExportFilterAggregatorRector\Fixture;
use Chill\MainBundle\Export\ExportGenerationContext;
use Chill\MainBundle\Export\FilterInterface;
use Chill\MainBundle\Form\Type\PickRollingDateType;
use Chill\MainBundle\Service\RollingDate\RollingDate;
@@ -66,7 +68,7 @@ use Symfony\Component\Form\FormBuilderInterface;
class MyClass implements FilterInterface
{
public function describeAction($data, $format = 'string')
public function describeAction($data, ExportGenerationContext $context, $format = 'string')
{
// TODO: Implement describeAction() method.
}

View File

@@ -2,6 +2,7 @@
namespace Utils\Rector\Tests\ChillBundleAddFormDefaultDataOnExportFilterAggregatorRector\Fixture;
use Chill\MainBundle\Export\ExportGenerationContext;
use Chill\MainBundle\Export\FilterInterface;
use Chill\MainBundle\Form\Type\PickRollingDateType;
use Chill\MainBundle\Service\RollingDate\RollingDate;
@@ -11,7 +12,7 @@ use Symfony\Component\Form\FormBuilderInterface;
class MyClass implements FilterInterface
{
public function describeAction($data, $format = 'string')
public function describeAction($data, ExportGenerationContext $context, $format = 'string')
{
// TODO: Implement describeAction() method.
}
@@ -55,6 +56,7 @@ class MyClass implements FilterInterface
namespace Utils\Rector\Tests\ChillBundleAddFormDefaultDataOnExportFilterAggregatorRector\Fixture;
use Chill\MainBundle\Export\ExportGenerationContext;
use Chill\MainBundle\Export\FilterInterface;
use Chill\MainBundle\Form\Type\PickRollingDateType;
use Chill\MainBundle\Service\RollingDate\RollingDate;
@@ -64,7 +66,7 @@ use Symfony\Component\Form\FormBuilderInterface;
class MyClass implements FilterInterface
{
public function describeAction($data, $format = 'string')
public function describeAction($data, ExportGenerationContext $context, $format = 'string')
{
// TODO: Implement describeAction() method.
}

View File

@@ -2,6 +2,7 @@
namespace Utils\Rector\Tests\ChillBundleAddFormDefaultDataOnExportFilterAggregatorRector\Fixture;
use Chill\MainBundle\Export\ExportGenerationContext;
use Chill\MainBundle\Export\FilterInterface;
use Chill\MainBundle\Form\Type\PickRollingDateType;
use Chill\MainBundle\Service\RollingDate\RollingDate;
@@ -11,7 +12,7 @@ use Symfony\Component\Form\FormBuilderInterface;
class MyClass implements FilterInterface
{
public function describeAction($data, $format = 'string')
public function describeAction($data, ExportGenerationContext $context, $format = 'string')
{
// TODO: Implement describeAction() method.
}
@@ -53,6 +54,7 @@ class MyClass implements FilterInterface
namespace Utils\Rector\Tests\ChillBundleAddFormDefaultDataOnExportFilterAggregatorRector\Fixture;
use Chill\MainBundle\Export\ExportGenerationContext;
use Chill\MainBundle\Export\FilterInterface;
use Chill\MainBundle\Form\Type\PickRollingDateType;
use Chill\MainBundle\Service\RollingDate\RollingDate;
@@ -62,7 +64,7 @@ use Symfony\Component\Form\FormBuilderInterface;
class MyClass implements FilterInterface
{
public function describeAction($data, $format = 'string')
public function describeAction($data, ExportGenerationContext $context, $format = 'string')
{
// TODO: Implement describeAction() method.
}

View File

@@ -2,6 +2,7 @@
namespace Utils\Rector\Tests\ChillBundleAddFormDefaultDataOnExportFilterAggregatorRector\Fixture;
use Chill\MainBundle\Export\ExportGenerationContext;
use Chill\MainBundle\Export\FilterInterface;
use Chill\MainBundle\Form\Type\PickRollingDateType;
use Chill\MainBundle\Service\RollingDate\RollingDate;
@@ -10,7 +11,7 @@ use Symfony\Component\Form\FormBuilderInterface;
class MyClass implements FilterInterface
{
public function describeAction($data, $format = 'string')
public function describeAction($data, ExportGenerationContext $context, $format = 'string')
{
// TODO: Implement describeAction() method.
}
@@ -49,6 +50,7 @@ class MyClass implements FilterInterface
namespace Utils\Rector\Tests\ChillBundleAddFormDefaultDataOnExportFilterAggregatorRector\Fixture;
use Chill\MainBundle\Export\ExportGenerationContext;
use Chill\MainBundle\Export\FilterInterface;
use Chill\MainBundle\Form\Type\PickRollingDateType;
use Chill\MainBundle\Service\RollingDate\RollingDate;
@@ -57,7 +59,7 @@ use Symfony\Component\Form\FormBuilderInterface;
class MyClass implements FilterInterface
{
public function describeAction($data, $format = 'string')
public function describeAction($data, ExportGenerationContext $context, $format = 'string')
{
// TODO: Implement describeAction() method.
}

View File

@@ -2,13 +2,14 @@
namespace Utils\Rector\Tests\ChillBundleAddFormDefaultDataOnExportFilterAggregatorRector\Fixture;
use Chill\MainBundle\Export\ExportGenerationContext;
use Chill\MainBundle\Export\FilterInterface;
use Doctrine\ORM\QueryBuilder;
use Symfony\Component\Form\FormBuilderInterface;
class MyClass implements FilterInterface
{
public function describeAction($data, $format = 'string')
public function describeAction($data, ExportGenerationContext $context, $format = 'string')
{
// TODO: Implement describeAction() method.
}
@@ -44,13 +45,14 @@ class MyClass implements FilterInterface
namespace Utils\Rector\Tests\ChillBundleAddFormDefaultDataOnExportFilterAggregatorRector\Fixture;
use Chill\MainBundle\Export\ExportGenerationContext;
use Chill\MainBundle\Export\FilterInterface;
use Doctrine\ORM\QueryBuilder;
use Symfony\Component\Form\FormBuilderInterface;
class MyClass implements FilterInterface
{
public function describeAction($data, $format = 'string')
public function describeAction($data, ExportGenerationContext $context, $format = 'string')
{
// TODO: Implement describeAction() method.
}

View File

@@ -2,13 +2,14 @@
namespace Utils\Rector\Tests\ChillBundleAddFormDefaultDataOnExportFilterAggregatorRector\Fixture;
use Chill\MainBundle\Export\ExportGenerationContext;
use Chill\MainBundle\Export\FilterInterface;
use Doctrine\ORM\QueryBuilder;
use Symfony\Component\Form\FormBuilderInterface;
class MyClass implements FilterInterface
{
public function describeAction($data, $format = 'string')
public function describeAction($data, ExportGenerationContext $context, $format = 'string')
{
// TODO: Implement describeAction() method.
}

View File

@@ -29,7 +29,7 @@ class MyFilter implements FilterInterface
return [];
}
public function describeAction($data, $format = 'string')
public function describeAction($data, \Chill\MainBundle\Export\ExportGenerationContext $context, $format = 'string')
{
return [];
}
@@ -96,7 +96,7 @@ class MyFilter implements FilterInterface
return [];
}
public function describeAction($data, $format = 'string')
public function describeAction($data, \Chill\MainBundle\Export\ExportGenerationContext $context, $format = 'string')
{
return [];
}

View File

@@ -32,7 +32,7 @@ class MyFilter implements FilterInterface
return [];
}
public function describeAction($data, $format = 'string')
public function describeAction($data, \Chill\MainBundle\Export\ExportGenerationContext $context, $format = 'string')
{
return [];
}
@@ -102,7 +102,7 @@ class MyFilter implements FilterInterface
return [];
}
public function describeAction($data, $format = 'string')
public function describeAction($data, \Chill\MainBundle\Export\ExportGenerationContext $context, $format = 'string')
{
return [];
}

View File

@@ -24,7 +24,7 @@ class MyFilter implements FilterInterface
return [];
}
public function describeAction($data, $format = 'string')
public function describeAction($data, \Chill\MainBundle\Export\ExportGenerationContext $context, $format = 'string')
{
return [];
}
@@ -85,7 +85,7 @@ class MyFilter implements FilterInterface
return [];
}
public function describeAction($data, $format = 'string')
public function describeAction($data, \Chill\MainBundle\Export\ExportGenerationContext $context, $format = 'string')
{
return [];
}

View File

@@ -33,7 +33,7 @@ class MyFilterUpdated implements FilterInterface
return 1;
}
public function describeAction($data, $format = 'string')
public function describeAction($data, \Chill\MainBundle\Export\ExportGenerationContext $context, $format = 'string')
{
return [];
}