Skip to content

Commit 756b2ef

Browse files
committed
Merge branch 'task/upgrade-oro-4.2' into 'release/2.1'
[TASK] Upgrade extension to support OroCommerce 4.2 See merge request b2bcode/oro/extensions/cms-form-builder!3
2 parents 2a3e192 + 84c52da commit 756b2ef

File tree

15 files changed

+19
-19
lines changed

15 files changed

+19
-19
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
]
1818
},
1919
"require": {
20-
"oro/commerce": "~4.1.7"
20+
"oro/commerce": "4.2.*"
2121
},
2222
"minimum-stability": "dev"
2323
}

src/B2bCode/Bundle/CmsFormBundle/Builder/FormBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use B2bCode\Bundle\CmsFormBundle\Provider\FieldTypeRegistry;
1919
use B2bCode\Bundle\CmsFormBundle\Validator\Config\FormConstraintCollection;
2020
use B2bCode\Bundle\CmsFormBundle\Validator\ConstraintProviderInterface;
21-
use Doctrine\Common\Persistence\ManagerRegistry;
21+
use Doctrine\Persistence\ManagerRegistry;
2222
use Symfony\Component\Form\FormBuilderInterface as SymfonyFormBuilderInterface;
2323
use Symfony\Component\Form\FormFactoryInterface;
2424
use Symfony\Component\Form\FormInterface;

src/B2bCode/Bundle/CmsFormBundle/Event/ConstraintBuild.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use B2bCode\Bundle\CmsFormBundle\Entity\CmsForm;
1515
use B2bCode\Bundle\CmsFormBundle\Validator\Config\FormConstraintCollection;
16-
use Symfony\Component\EventDispatcher\Event;
16+
use Symfony\Contracts\EventDispatcher\Event;
1717

1818
class ConstraintBuild extends Event
1919
{

src/B2bCode/Bundle/CmsFormBundle/EventListener/Datagrid/FormResponseListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use B2bCode\Bundle\CmsFormBundle\Entity\CmsFieldResponse;
1515
use B2bCode\Bundle\CmsFormBundle\Entity\Repository\CmsFieldResponseRepository;
16-
use Doctrine\Common\Persistence\ManagerRegistry;
16+
use Doctrine\Persistence\ManagerRegistry;
1717
use Oro\Bundle\DataGridBundle\Datasource\ResultRecord;
1818
use Oro\Bundle\DataGridBundle\Event\OrmResultAfter;
1919

src/B2bCode/Bundle/CmsFormBundle/Form/Extension/ChoiceFieldExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ class ChoiceFieldExtension extends AbstractTypeExtension
3131
/**
3232
* {@inheritdoc}
3333
*/
34-
public function getExtendedType()
34+
public static function getExtendedTypes(): iterable
3535
{
36-
return FieldType::class;
36+
return [FieldType::class];
3737
}
3838

3939
/**

src/B2bCode/Bundle/CmsFormBundle/Form/Extension/FieldOptionsExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class FieldOptionsExtension extends AbstractTypeExtension
2727
/**
2828
* {@inheritdoc}
2929
*/
30-
public function getExtendedType()
30+
public static function getExtendedTypes(): iterable
3131
{
32-
return FieldType::class;
32+
return [FieldType::class];
3333
}
3434

3535
/**

src/B2bCode/Bundle/CmsFormBundle/Form/Extension/HiddenFieldExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ class HiddenFieldExtension extends AbstractTypeExtension
1616
/**
1717
* {@inheritdoc}
1818
*/
19-
public function getExtendedType()
19+
public static function getExtendedTypes(): iterable
2020
{
21-
return FieldType::class;
21+
return [FieldType::class];
2222
}
2323

2424
/**

src/B2bCode/Bundle/CmsFormBundle/Form/Extension/ReCaptchaFieldExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ class ReCaptchaFieldExtension extends AbstractTypeExtension
1616
/**
1717
* {@inheritdoc}
1818
*/
19-
public function getExtendedType()
19+
public static function getExtendedTypes(): iterable
2020
{
21-
return FieldType::class;
21+
return [FieldType::class];
2222
}
2323

2424
/**

src/B2bCode/Bundle/CmsFormBundle/Form/Type/FieldType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use Symfony\Component\Form\FormEvent;
2222
use Symfony\Component\Form\FormEvents;
2323
use Symfony\Component\OptionsResolver\OptionsResolver;
24-
use Symfony\Component\Translation\TranslatorInterface;
24+
use Symfony\Contracts\Translation\TranslatorInterface;
2525

2626
class FieldType extends AbstractType
2727
{

src/B2bCode/Bundle/CmsFormBundle/Migrations/Data/Demo/ORM/LoadDemoCmsForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use B2bCode\Bundle\CmsFormBundle\Entity\CmsForm;
1515
use B2bCode\Bundle\CmsFormBundle\Entity\CmsFormField;
1616
use Doctrine\Common\DataFixtures\AbstractFixture;
17-
use Doctrine\Common\Persistence\ObjectManager;
17+
use Doctrine\Persistence\ObjectManager;
1818

1919
class LoadDemoCmsForm extends AbstractFixture
2020
{

0 commit comments

Comments
 (0)