You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->shouldTrigger(\E_USER_DEPRECATED, 'Not passing a $pdfOptionsGenerator to Sylius\RefundPlugin\Generator\CreditMemoPdfFileGenerator constructor is deprecated since sylius/refund-plugin 1.1 and will be prohibited in 2.0.')->duringInstantiation();
104
+
$this->shouldTrigger(\E_USER_DEPRECATED, 'Not passing a $twigToPdfGenerator to Sylius\RefundPlugin\Generator\CreditMemoPdfFileGenerator constructor is deprecated since sylius/refund-plugin 1.2 and will be prohibited in 2.0.')->duringInstantiation();
$this->shouldTrigger(\E_USER_DEPRECATED, 'Passing Twig\Environment as the second argument to Sylius\RefundPlugin\Generator\CreditMemoPdfFileGenerator constructor is deprecated since sylius/refund-plugin 1.2 and will be prohibited in 2.0.')->duringInstantiation();
125
+
$this->shouldTrigger(\E_USER_DEPRECATED, 'Passing Knp\Snappy\GeneratorInterface as the third argument to Sylius\RefundPlugin\Generator\CreditMemoPdfFileGenerator constructor is deprecated since sylius/refund-plugin 1.2 and will be prohibited in 2.0.')->duringInstantiation();
126
+
$this->shouldTrigger(\E_USER_DEPRECATED, 'Passing Sylius\RefundPlugin\Generator\PdfOptionsGeneratorInterface as the seventh argument to Sylius\RefundPlugin\Generator\CreditMemoPdfFileGenerator constructor is deprecated since sylius/refund-plugin 1.2 and will be prohibited in 2.0.')->duringInstantiation();
thrownew \LogicException(sprintf('You must pass at least $twigToPdfGenerator to %s constructor.', self::class));
78
+
}
79
+
88
80
privatefunctioncheckDeprecations(): void
89
81
{
90
-
if (null === $this->pdfOptionsGenerator) {
91
-
@trigger_error(sprintf('Not passing a $pdfOptionsGenerator to %s constructor is deprecated since sylius/refund-plugin 1.1 and will be prohibited in 2.0.', self::class), \E_USER_DEPRECATED);
82
+
if (null !== $this->twig) {
83
+
@trigger_error(sprintf('Passing %s as the second argument to %s constructor is deprecated since sylius/refund-plugin 1.2 and will be prohibited in 2.0.', Environment::class, self::class), \E_USER_DEPRECATED);
84
+
}
85
+
86
+
if (null !== $this->pdfGenerator) {
87
+
@trigger_error(sprintf('Passing %s as the third argument to %s constructor is deprecated since sylius/refund-plugin 1.2 and will be prohibited in 2.0.', GeneratorInterface::class, self::class), \E_USER_DEPRECATED);
88
+
}
89
+
90
+
if (null !== $this->pdfOptionsGenerator) {
91
+
@trigger_error(sprintf('Passing %s as the seventh argument to %s constructor is deprecated since sylius/refund-plugin 1.2 and will be prohibited in 2.0. You should pass $twigToPdfGenerator instead.', PdfOptionsGeneratorInterface::class, self::class), \E_USER_DEPRECATED);
92
+
}
93
+
94
+
if (null === $this->twigToPdfGenerator) {
95
+
@trigger_error(sprintf('Not passing a $twigToPdfGenerator to %s constructor is deprecated since sylius/refund-plugin 1.2 and will be prohibited in 2.0.', self::class), \E_USER_DEPRECATED);
0 commit comments