mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[Maintenance] Update resource models FQCNs
This commit is contained in:
parent
8432b4e697
commit
c4c7c568e8
177 changed files with 321 additions and 321 deletions
|
|
@ -23,7 +23,7 @@ Assuming that we would like to have a translatable model of a ``Supplier``, we n
|
|||
|
||||
namespace App\Entity;
|
||||
|
||||
use Sylius\Component\Resource\Model\AbstractTranslation;
|
||||
use Sylius\Resource\Model\AbstractTranslation;
|
||||
|
||||
class SupplierTranslation extends AbstractTranslation
|
||||
{
|
||||
|
|
@ -62,8 +62,8 @@ The actual entity has access to its translation by using the ``TranslatableTrait
|
|||
|
||||
namespace App\Entity;
|
||||
|
||||
use Sylius\Component\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Component\Resource\Model\TranslatableTrait;
|
||||
use Sylius\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Resource\Model\TranslatableTrait;
|
||||
|
||||
class Supplier implements TranslatableInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ Go to the generated class file and make it implement the ``ResourceInterface``:
|
|||
|
||||
namespace App\Entity;
|
||||
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
class Supplier implements ResourceInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -43,8 +43,8 @@ Below the final ``SupplierTranslation`` class is presented, it implements the ``
|
|||
|
||||
namespace App\Entity;
|
||||
|
||||
use Sylius\Component\Resource\Model\AbstractTranslation;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\AbstractTranslation;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
class SupplierTranslation extends AbstractTranslation implements ResourceInterface
|
||||
{
|
||||
|
|
@ -130,9 +130,9 @@ As a result you should get such a ``Supplier`` class:
|
|||
|
||||
namespace App\Entity;
|
||||
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Component\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Component\Resource\Model\TranslatableTrait;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Resource\Model\TranslatableTrait;
|
||||
|
||||
class Supplier implements ResourceInterface, TranslatableInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use Sylius\Behat\Service\Converter\SectionAwareIriConverterInterface;
|
|||
use Sylius\Behat\Service\SharedStorageInterface;
|
||||
use Sylius\Component\Core\Model\ChannelInterface;
|
||||
use Sylius\Component\Core\Model\TaxonInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Webmozart\Assert\Assert;
|
||||
|
||||
final class ManagingChannelPriceHistoryConfigsContext implements Context
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use Sylius\Component\Addressing\Model\ZoneMemberInterface;
|
|||
use Sylius\Component\Core\Formatter\StringInflector;
|
||||
use Sylius\Component\Core\Model\ChannelInterface;
|
||||
use Sylius\Resource\Factory\FactoryInterface;
|
||||
use Sylius\Component\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Resource\Doctrine\Persistence\RepositoryInterface;
|
||||
use Symfony\Component\Intl\Countries;
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace Sylius\Bundle\AdminBundle\Controller;
|
|||
use Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface;
|
||||
use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration;
|
||||
use Sylius\Bundle\UiBundle\Storage\FilterStorageInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
final class RedirectHandler implements RedirectHandlerInterface
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ use PhpSpec\ObjectBehavior;
|
|||
use Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface;
|
||||
use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration;
|
||||
use Sylius\Bundle\UiBundle\Storage\FilterStorageInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
final class RedirectHandlerSpec extends ObjectBehavior
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use Sylius\Component\Core\Model\ImageInterface;
|
|||
use Sylius\Component\Core\Repository\AvatarImageRepositoryInterface;
|
||||
use Sylius\Component\Core\Uploader\ImageUploaderInterface;
|
||||
use Sylius\Resource\Factory\FactoryInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Webmozart\Assert\Assert;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace Sylius\Bundle\ApiBundle\DataPersister;
|
|||
use ApiPlatform\Core\DataPersister\ContextAwareDataPersisterInterface;
|
||||
use ApiPlatform\Core\DataPersister\ResumableDataPersisterInterface;
|
||||
use Sylius\Bundle\ApiBundle\Exception\TranslationInDefaultLocaleCannotBeRemoved;
|
||||
use Sylius\Component\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface;
|
||||
|
||||
final class TranslatableDataPersister implements ContextAwareDataPersisterInterface, ResumableDataPersisterInterface
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface as Leg
|
|||
use ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface;
|
||||
use Doctrine\ORM\Query\Expr\Join;
|
||||
use Doctrine\ORM\QueryBuilder;
|
||||
use Sylius\Component\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Resource\Model\TranslatableInterface;
|
||||
|
||||
final class TranslationOrderLocaleExtension implements ContextAwareQueryCollectionExtensionInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Bundle\ApiBundle\Serializer;
|
||||
|
||||
use Sylius\Component\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\Serializer\Normalizer\ContextAwareDenormalizerInterface;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ declare(strict_types=1);
|
|||
namespace Sylius\Bundle\ApiBundle\Serializer;
|
||||
|
||||
use Sylius\Bundle\ApiBundle\Exception\TranslationLocaleMismatchException;
|
||||
use Sylius\Component\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Resource\Model\TranslatableInterface;
|
||||
use Symfony\Component\Serializer\Normalizer\ContextAwareDenormalizerInterface;
|
||||
use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface;
|
||||
use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Bundle\ApiBundle\Application\Entity;
|
||||
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
class FooSyliusResource implements ResourceInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ declare(strict_types=1);
|
|||
namespace Sylius\Bundle\ApiBundle\Validator;
|
||||
|
||||
use ApiPlatform\Symfony\Validator\Exception\ValidationException;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
||||
|
||||
final class ResourceApiInputDataPropertiesValidator implements ResourceInputDataPropertiesValidatorInterface
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Bundle\ApiBundle\Validator;
|
||||
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
interface ResourceInputDataPropertiesValidatorInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use Sylius\Bundle\ApiBundle\Context\UserContextInterface;
|
|||
use Sylius\Component\Core\Model\AddressInterface;
|
||||
use Sylius\Component\Core\Model\CustomerInterface;
|
||||
use Sylius\Component\Core\Model\ShopUserInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
final class AddressDataPersisterSpec extends ObjectBehavior
|
||||
{
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ use ApiPlatform\Core\DataPersister\ResumableDataPersisterInterface;
|
|||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use PhpSpec\ObjectBehavior;
|
||||
use Sylius\Bundle\ApiBundle\Exception\TranslationInDefaultLocaleCannotBeRemoved;
|
||||
use Sylius\Component\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface;
|
||||
|
||||
final class TranslatableDataPersisterSpec extends ObjectBehavior
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use Sylius\Component\Core\Model\CustomerInterface;
|
|||
use Sylius\Component\Core\Model\OrderItemInterface;
|
||||
use Sylius\Component\Core\Model\ShopUserInterface;
|
||||
use Sylius\Component\Core\Repository\OrderItemRepositoryInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
final class OrderItemItemDataProviderSpec extends ObjectBehavior
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use Sylius\Component\Core\Model\CustomerInterface;
|
|||
use Sylius\Component\Core\Model\OrderItemUnitInterface;
|
||||
use Sylius\Component\Core\Model\ShopUserInterface;
|
||||
use Sylius\Component\Core\Repository\OrderItemUnitRepositoryInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
final class OrderItemUnitItemDataProviderSpec extends ObjectBehavior
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use Sylius\Component\Core\Model\CustomerInterface;
|
|||
use Sylius\Component\Core\Model\PaymentInterface;
|
||||
use Sylius\Component\Core\Model\ShopUserInterface;
|
||||
use Sylius\Component\Core\Repository\PaymentRepositoryInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
final class PaymentItemDataProviderSpec extends ObjectBehavior
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use Sylius\Component\Core\Model\CustomerInterface;
|
|||
use Sylius\Component\Core\Model\ShipmentInterface;
|
||||
use Sylius\Component\Core\Model\ShopUserInterface;
|
||||
use Sylius\Component\Core\Repository\ShipmentRepositoryInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
final class ShipmentItemDataProviderSpec extends ObjectBehavior
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace spec\Sylius\Bundle\ApiBundle\DataProvider;
|
|||
|
||||
use PhpSpec\ObjectBehavior;
|
||||
use Sylius\Bundle\ApiBundle\Command\Account\VerifyCustomerAccount;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
final class VerifyCustomerAccountItemDataProviderSpec extends ObjectBehavior
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace spec\Sylius\Bundle\ApiBundle\DataTransformer;
|
|||
use PhpSpec\ObjectBehavior;
|
||||
use Sylius\Bundle\ApiBundle\Command\LocaleCodeAwareInterface;
|
||||
use Sylius\Component\Locale\Context\LocaleContextInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
final class LocaleCodeAwareInputCommandDataTransformerSpec extends ObjectBehavior
|
||||
{
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use Sylius\Component\Core\Model\AdminUserInterface;
|
|||
use Sylius\Component\Core\Model\ChannelInterface;
|
||||
use Sylius\Component\Core\Model\OrderInterface;
|
||||
use Sylius\Component\Core\Model\ShopUserInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Sylius\Component\User\Model\UserInterface;
|
||||
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use Sylius\Component\Core\Model\AdminUserInterface;
|
|||
use Sylius\Component\Core\Model\CustomerInterface;
|
||||
use Sylius\Component\Core\Model\OrderInterface;
|
||||
use Sylius\Component\Core\Model\ShopUserInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Sylius\Component\User\Model\UserInterface;
|
||||
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace spec\Sylius\Bundle\ApiBundle\Serializer;
|
|||
|
||||
use PhpSpec\ObjectBehavior;
|
||||
use Sylius\Bundle\ApiBundle\Serializer\ContextKeys;
|
||||
use Sylius\Component\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface;
|
||||
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ final class TranslatableDenormalizerSpec extends ObjectBehavior
|
|||
])->shouldReturn(false);
|
||||
|
||||
$this->supportsDenormalization([], TranslatableInterface::class, null, [
|
||||
'sylius_translatable_denormalizer_already_called_for_Sylius\Component\Resource\Model\TranslatableInterface' => true,
|
||||
'sylius_translatable_denormalizer_already_called_for_Sylius\Resource\Model\TranslatableInterface' => true,
|
||||
ContextKeys::HTTP_REQUEST_METHOD_TYPE => 'POST',
|
||||
])->shouldReturn(false);
|
||||
|
||||
|
|
@ -55,7 +55,7 @@ final class TranslatableDenormalizerSpec extends ObjectBehavior
|
|||
$localeProvider->getDefaultLocaleCode()->willReturn('en');
|
||||
|
||||
$denormalizer->denormalize($data, TranslatableInterface::class, null, [
|
||||
'sylius_translatable_denormalizer_already_called_for_Sylius\Component\Resource\Model\TranslatableInterface' => true,
|
||||
'sylius_translatable_denormalizer_already_called_for_Sylius\Resource\Model\TranslatableInterface' => true,
|
||||
ContextKeys::HTTP_REQUEST_METHOD_TYPE => 'POST',
|
||||
])->shouldBeCalled()->willReturn($data);
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ final class TranslatableDenormalizerSpec extends ObjectBehavior
|
|||
$updatedData = ['translations' => ['en' => ['locale' => 'en']]];
|
||||
|
||||
$denormalizer->denormalize($updatedData, TranslatableInterface::class, null, [
|
||||
'sylius_translatable_denormalizer_already_called_for_Sylius\Component\Resource\Model\TranslatableInterface' => true,
|
||||
'sylius_translatable_denormalizer_already_called_for_Sylius\Resource\Model\TranslatableInterface' => true,
|
||||
ContextKeys::HTTP_REQUEST_METHOD_TYPE => 'POST',
|
||||
])->shouldBeCalled()->willReturn($updatedData);
|
||||
|
||||
|
|
@ -94,7 +94,7 @@ final class TranslatableDenormalizerSpec extends ObjectBehavior
|
|||
$updatedData = ['translations' => ['en' => ['locale' => 'en']]];
|
||||
|
||||
$denormalizer->denormalize($updatedData, TranslatableInterface::class, null, [
|
||||
'sylius_translatable_denormalizer_already_called_for_Sylius\Component\Resource\Model\TranslatableInterface' => true,
|
||||
'sylius_translatable_denormalizer_already_called_for_Sylius\Resource\Model\TranslatableInterface' => true,
|
||||
ContextKeys::HTTP_REQUEST_METHOD_TYPE => 'POST',
|
||||
])->shouldBeCalled()->willReturn($updatedData);
|
||||
|
||||
|
|
@ -114,7 +114,7 @@ final class TranslatableDenormalizerSpec extends ObjectBehavior
|
|||
$updatedData = ['translations' => ['en' => ['locale' => 'en']]];
|
||||
|
||||
$denormalizer->denormalize($updatedData, TranslatableInterface::class, null, [
|
||||
'sylius_translatable_denormalizer_already_called_for_Sylius\Component\Resource\Model\TranslatableInterface' => true,
|
||||
'sylius_translatable_denormalizer_already_called_for_Sylius\Resource\Model\TranslatableInterface' => true,
|
||||
ContextKeys::HTTP_REQUEST_METHOD_TYPE => 'POST',
|
||||
])->shouldBeCalled()->willReturn($updatedData);
|
||||
|
||||
|
|
@ -134,7 +134,7 @@ final class TranslatableDenormalizerSpec extends ObjectBehavior
|
|||
$updatedData = ['translations' => ['en' => ['locale' => 'en']]];
|
||||
|
||||
$denormalizer->denormalize($updatedData, TranslatableInterface::class, null, [
|
||||
'sylius_translatable_denormalizer_already_called_for_Sylius\Component\Resource\Model\TranslatableInterface' => true,
|
||||
'sylius_translatable_denormalizer_already_called_for_Sylius\Resource\Model\TranslatableInterface' => true,
|
||||
ContextKeys::HTTP_REQUEST_METHOD_TYPE => 'POST',
|
||||
])->shouldBeCalled()->willReturn($updatedData);
|
||||
|
||||
|
|
@ -154,7 +154,7 @@ final class TranslatableDenormalizerSpec extends ObjectBehavior
|
|||
$updatedData = ['translations' => ['en' => ['locale' => 'en']]];
|
||||
|
||||
$denormalizer->denormalize($updatedData, TranslatableInterface::class, null, [
|
||||
'sylius_translatable_denormalizer_already_called_for_Sylius\Component\Resource\Model\TranslatableInterface' => true,
|
||||
'sylius_translatable_denormalizer_already_called_for_Sylius\Resource\Model\TranslatableInterface' => true,
|
||||
ContextKeys::HTTP_REQUEST_METHOD_TYPE => 'POST',
|
||||
])->shouldBeCalled()->willReturn($updatedData);
|
||||
|
||||
|
|
@ -174,7 +174,7 @@ final class TranslatableDenormalizerSpec extends ObjectBehavior
|
|||
$updatedData = ['translations' => ['en' => ['locale' => 'en'], 'pl' => ['locale' => 'pl']]];
|
||||
|
||||
$denormalizer->denormalize($updatedData, TranslatableInterface::class, null, [
|
||||
'sylius_translatable_denormalizer_already_called_for_Sylius\Component\Resource\Model\TranslatableInterface' => true,
|
||||
'sylius_translatable_denormalizer_already_called_for_Sylius\Resource\Model\TranslatableInterface' => true,
|
||||
ContextKeys::HTTP_REQUEST_METHOD_TYPE => 'POST',
|
||||
])->shouldBeCalled()->willReturn($updatedData);
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace spec\Sylius\Bundle\ApiBundle\Serializer;
|
|||
|
||||
use PhpSpec\ObjectBehavior;
|
||||
use Sylius\Bundle\ApiBundle\Exception\TranslationLocaleMismatchException;
|
||||
use Sylius\Component\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Resource\Model\TranslatableInterface;
|
||||
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
|
||||
|
||||
final class TranslatableLocaleKeyDenormalizerSpec extends ObjectBehavior
|
||||
|
|
@ -24,7 +24,7 @@ final class TranslatableLocaleKeyDenormalizerSpec extends ObjectBehavior
|
|||
{
|
||||
$this
|
||||
->supportsDenormalization([], TranslatableInterface::class, context: [
|
||||
'sylius_translatable_locale_key_denormalizer_already_called_for_Sylius\Component\Resource\Model\TranslatableInterface' => true,
|
||||
'sylius_translatable_locale_key_denormalizer_already_called_for_Sylius\Resource\Model\TranslatableInterface' => true,
|
||||
])->shouldReturn(false)
|
||||
;
|
||||
}
|
||||
|
|
@ -47,7 +47,7 @@ final class TranslatableLocaleKeyDenormalizerSpec extends ObjectBehavior
|
|||
$this->denormalize([], TranslatableInterface::class);
|
||||
|
||||
$denormalizer->denormalize([], TranslatableInterface::class, null, [
|
||||
'sylius_translatable_locale_key_denormalizer_already_called_for_Sylius\Component\Resource\Model\TranslatableInterface' => true,
|
||||
'sylius_translatable_locale_key_denormalizer_already_called_for_Sylius\Resource\Model\TranslatableInterface' => true,
|
||||
])->shouldHaveBeenCalledOnce();
|
||||
}
|
||||
|
||||
|
|
@ -65,7 +65,7 @@ final class TranslatableLocaleKeyDenormalizerSpec extends ObjectBehavior
|
|||
$updatedData,
|
||||
TranslatableInterface::class,
|
||||
null,
|
||||
['sylius_translatable_locale_key_denormalizer_already_called_for_Sylius\Component\Resource\Model\TranslatableInterface' => true],
|
||||
['sylius_translatable_locale_key_denormalizer_already_called_for_Sylius\Resource\Model\TranslatableInterface' => true],
|
||||
)->shouldHaveBeenCalledOnce();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
|
|||
use Doctrine\ORM\ORMException;
|
||||
use Sylius\Bundle\ResourceBundle\Controller\ResourceDeleteHandlerInterface;
|
||||
use Sylius\Component\Resource\Exception\DeleteHandlingException;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Doctrine\Persistence\RepositoryInterface;
|
||||
|
||||
final class ResourceDeleteHandler implements ResourceDeleteHandlerInterface
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use Doctrine\Persistence\ObjectManager;
|
|||
use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration;
|
||||
use Sylius\Bundle\ResourceBundle\Controller\ResourceUpdateHandlerInterface;
|
||||
use Sylius\Component\Resource\Exception\RaceConditionException;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
final class ResourceUpdateHandler implements ResourceUpdateHandlerInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace Sylius\Bundle\CoreBundle\EventListener;
|
|||
|
||||
use Doctrine\DBAL\LockMode;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Sylius\Component\Resource\Model\VersionedInterface;
|
||||
use Sylius\Resource\Model\VersionedInterface;
|
||||
use Symfony\Component\EventDispatcher\GenericEvent;
|
||||
use Webmozart\Assert\Assert;
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ use Sylius\Component\Core\Model\ChannelInterface;
|
|||
use Sylius\Component\Core\Model\CustomerInterface;
|
||||
use Sylius\Component\Core\Model\OrderInterface;
|
||||
use Sylius\Resource\Factory\FactoryInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
/**
|
||||
* @template T of ResourceInterface
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace Sylius\Bundle\CoreBundle\Resource\StateMachine\Controller;
|
|||
use Sylius\Abstraction\StateMachine\StateMachineInterface;
|
||||
use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration;
|
||||
use Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface as ResourceStateMachineInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Webmozart\Assert\Assert;
|
||||
|
||||
final class CompositeStateMachine implements ResourceStateMachineInterface
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
-->
|
||||
|
||||
<constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping http://symfony.com/schema/dic/services/constraint-mapping-1.0.xsd">
|
||||
<class name="Sylius\Component\Resource\Model\AbstractTranslation">
|
||||
<class name="Sylius\Resource\Model\AbstractTranslation">
|
||||
<constraint name="Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity">
|
||||
<option name="fields">
|
||||
<value>locale</value>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
-->
|
||||
|
||||
<constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping http://symfony.com/schema/dic/services/constraint-mapping-1.0.xsd">
|
||||
<class name="Sylius\Component\Resource\Model\TranslatableInterface">
|
||||
<class name="Sylius\Resource\Model\TranslatableInterface">
|
||||
<constraint name="Sylius\Bundle\CoreBundle\Validator\Constraints\TranslationForExistingLocales">
|
||||
<option name="groups">sylius</option>
|
||||
</constraint>
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use Prophecy\PhpUnit\ProphecyTrait;
|
|||
use Prophecy\Prophecy\ObjectProphecy;
|
||||
use Sylius\Bundle\CoreBundle\Fixture\OptionsResolver\LazyOption;
|
||||
use Sylius\Bundle\CoreBundle\Fixture\OptionsResolver\ResourceNotFoundException;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Doctrine\Persistence\RepositoryInterface;
|
||||
use Symfony\Component\OptionsResolver\Options;
|
||||
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ declare(strict_types=1);
|
|||
namespace Sylius\Bundle\CoreBundle\Validator\Constraints;
|
||||
|
||||
use Sylius\Component\Locale\Model\LocaleInterface;
|
||||
use Sylius\Component\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Component\Resource\Model\TranslationInterface;
|
||||
use Sylius\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Resource\Model\TranslationInterface;
|
||||
use Sylius\Resource\Doctrine\Persistence\RepositoryInterface;
|
||||
use Symfony\Component\Validator\Constraint;
|
||||
use Symfony\Component\Validator\ConstraintValidator;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use Doctrine\ORM\ORMException;
|
|||
use PhpSpec\ObjectBehavior;
|
||||
use Sylius\Bundle\ResourceBundle\Controller\ResourceDeleteHandlerInterface;
|
||||
use Sylius\Component\Resource\Exception\DeleteHandlingException;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Doctrine\Persistence\RepositoryInterface;
|
||||
|
||||
final class ResourceDeleteHandlerSpec extends ObjectBehavior
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ use PhpSpec\ObjectBehavior;
|
|||
use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration;
|
||||
use Sylius\Bundle\ResourceBundle\Controller\ResourceUpdateHandlerInterface;
|
||||
use Sylius\Component\Resource\Exception\RaceConditionException;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
final class ResourceUpdateHandlerSpec extends ObjectBehavior
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ use Doctrine\DBAL\LockMode;
|
|||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use PhpSpec\ObjectBehavior;
|
||||
use Sylius\Component\Product\Resolver\ProductVariantResolverInterface;
|
||||
use Sylius\Component\Resource\Model\VersionedInterface;
|
||||
use Sylius\Resource\Model\VersionedInterface;
|
||||
use Symfony\Component\EventDispatcher\GenericEvent;
|
||||
|
||||
final class LockingListenerSpec extends ObjectBehavior
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace spec\Sylius\Bundle\CoreBundle\Resource\StateMachine\Controller;
|
|||
use PhpSpec\ObjectBehavior;
|
||||
use Sylius\Abstraction\StateMachine\StateMachineInterface;
|
||||
use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
final class CompositeStateMachineSpec extends ObjectBehavior
|
||||
{
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ use Doctrine\Persistence\ObjectRepository;
|
|||
use PhpSpec\ObjectBehavior;
|
||||
use Prophecy\Argument;
|
||||
use Sylius\Bundle\CoreBundle\Validator\Constraints\HasEnabledEntity;
|
||||
use Sylius\Component\Resource\Model\ToggleableInterface;
|
||||
use Sylius\Resource\Model\ToggleableInterface;
|
||||
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
|
||||
use Symfony\Component\Validator\Constraint;
|
||||
use Symfony\Component\Validator\ConstraintValidator;
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ use PhpSpec\ObjectBehavior;
|
|||
use Prophecy\Argument;
|
||||
use Sylius\Bundle\CoreBundle\Validator\Constraints\TranslationForExistingLocales;
|
||||
use Sylius\Component\Locale\Model\LocaleInterface;
|
||||
use Sylius\Component\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Component\Resource\Model\TranslationInterface;
|
||||
use Sylius\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Resource\Model\TranslationInterface;
|
||||
use Sylius\Resource\Doctrine\Persistence\RepositoryInterface;
|
||||
use Symfony\Component\Validator\Constraint;
|
||||
use Symfony\Component\Validator\ConstraintValidatorInterface;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ use Doctrine\ORM\EntityRepository;
|
|||
use Sylius\Component\Locale\Context\LocaleNotFoundException;
|
||||
use Sylius\Component\Locale\Model\LocaleInterface;
|
||||
use Sylius\Component\Resource\Metadata\RegistryInterface;
|
||||
use Sylius\Component\Resource\Model\TranslationInterface;
|
||||
use Sylius\Resource\Model\TranslationInterface;
|
||||
use Sylius\Resource\Doctrine\Persistence\RepositoryInterface;
|
||||
|
||||
final class LocaleUsageChecker implements LocaleUsageCheckerInterface
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ declare(strict_types=1);
|
|||
namespace Sylius\Bundle\PayumBundle\Model;
|
||||
|
||||
use Payum\Core\Model\GatewayConfigInterface as BaseGatewayConfigInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
interface GatewayConfigInterface extends BaseGatewayConfigInterface, ResourceInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ declare(strict_types=1);
|
|||
namespace Sylius\Bundle\PayumBundle\Model;
|
||||
|
||||
use Payum\Core\Security\TokenInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
interface PaymentSecurityTokenInterface extends ResourceInterface, TokenInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace AppBundle\Entity;
|
|||
use Doctrine\Common\Collections\Collection;
|
||||
use Sylius\Component\Promotion\Model\PromotionInterface;
|
||||
use Sylius\Component\Promotion\Model\PromotionSubjectInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
class PromotionSubject implements ResourceInterface, PromotionSubjectInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ declare(strict_types=1);
|
|||
namespace Sylius\Bundle\UserBundle\EventListener;
|
||||
|
||||
use Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Sylius\Component\User\Model\UserInterface;
|
||||
use Symfony\Component\HttpFoundation\RequestStack;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Addressing\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\TimestampableTrait;
|
||||
use Sylius\Resource\Model\TimestampableTrait;
|
||||
|
||||
class Address implements AddressInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Addressing\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Component\Resource\Model\TimestampableInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\TimestampableInterface;
|
||||
|
||||
interface AddressInterface extends TimestampableInterface, ResourceInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Addressing\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\ResourceLogEntry;
|
||||
use Sylius\Resource\Model\ResourceLogEntry;
|
||||
|
||||
class AddressLogEntry extends ResourceLogEntry
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace Sylius\Component\Addressing\Model;
|
|||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Sylius\Component\Resource\Model\ToggleableTrait;
|
||||
use Sylius\Resource\Model\ToggleableTrait;
|
||||
use Symfony\Component\Intl\Countries;
|
||||
|
||||
class Country implements CountryInterface, \Stringable
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@ declare(strict_types=1);
|
|||
namespace Sylius\Component\Addressing\Model;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Sylius\Component\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Component\Resource\Model\ToggleableInterface;
|
||||
use Sylius\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ToggleableInterface;
|
||||
|
||||
interface CountryInterface extends ToggleableInterface, ResourceInterface, CodeAwareInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Addressing\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
interface ProvinceInterface extends ResourceInterface, CodeAwareInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ declare(strict_types=1);
|
|||
namespace Sylius\Component\Addressing\Model;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Sylius\Component\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
interface ZoneInterface extends ResourceInterface, CodeAwareInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Addressing\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
interface ZoneMemberInterface extends ResourceInterface, CodeAwareInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ use PhpSpec\ObjectBehavior;
|
|||
use Sylius\Component\Addressing\Model\Country;
|
||||
use Sylius\Component\Addressing\Model\CountryInterface;
|
||||
use Sylius\Component\Addressing\Model\ProvinceInterface;
|
||||
use Sylius\Component\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Component\Resource\Model\ToggleableInterface;
|
||||
use Sylius\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Resource\Model\ToggleableInterface;
|
||||
|
||||
final class CountrySpec extends ObjectBehavior
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ use PhpSpec\ObjectBehavior;
|
|||
use Sylius\Component\Addressing\Model\CountryInterface;
|
||||
use Sylius\Component\Addressing\Model\Province;
|
||||
use Sylius\Component\Addressing\Model\ProvinceInterface;
|
||||
use Sylius\Component\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Resource\Model\CodeAwareInterface;
|
||||
|
||||
final class ProvinceSpec extends ObjectBehavior
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@ declare(strict_types=1);
|
|||
namespace Sylius\Component\Attribute\Model;
|
||||
|
||||
use Sylius\Component\Attribute\AttributeType\TextAttributeType;
|
||||
use Sylius\Component\Resource\Model\TimestampableTrait;
|
||||
use Sylius\Component\Resource\Model\TranslatableTrait;
|
||||
use Sylius\Component\Resource\Model\TranslationInterface;
|
||||
use Sylius\Resource\Model\TimestampableTrait;
|
||||
use Sylius\Resource\Model\TranslatableTrait;
|
||||
use Sylius\Resource\Model\TranslationInterface;
|
||||
|
||||
class Attribute implements AttributeInterface, \Stringable
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,11 +13,11 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Attribute\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Component\Resource\Model\TimestampableInterface;
|
||||
use Sylius\Component\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Component\Resource\Model\TranslationInterface;
|
||||
use Sylius\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\TimestampableInterface;
|
||||
use Sylius\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Resource\Model\TranslationInterface;
|
||||
|
||||
interface AttributeInterface extends
|
||||
ResourceInterface,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Attribute\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\AbstractTranslation;
|
||||
use Sylius\Resource\Model\AbstractTranslation;
|
||||
|
||||
class AttributeTranslation extends AbstractTranslation implements AttributeTranslationInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Attribute\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Component\Resource\Model\TranslationInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\TranslationInterface;
|
||||
|
||||
interface AttributeTranslationInterface extends ResourceInterface, TranslationInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Attribute\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
interface AttributeValueInterface extends ResourceInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Channel\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\TimestampableTrait;
|
||||
use Sylius\Component\Resource\Model\ToggleableTrait;
|
||||
use Sylius\Resource\Model\TimestampableTrait;
|
||||
use Sylius\Resource\Model\ToggleableTrait;
|
||||
|
||||
class Channel implements ChannelInterface, \Stringable
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,10 +13,10 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Channel\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Component\Resource\Model\TimestampableInterface;
|
||||
use Sylius\Component\Resource\Model\ToggleableInterface;
|
||||
use Sylius\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\TimestampableInterface;
|
||||
use Sylius\Resource\Model\ToggleableInterface;
|
||||
|
||||
interface ChannelInterface extends
|
||||
CodeAwareInterface,
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ declare(strict_types=1);
|
|||
namespace Sylius\Component\Core\Model;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Sylius\Component\Taxonomy\Model\TaxonInterface;
|
||||
|
||||
interface ChannelPriceHistoryConfigInterface extends ResourceInterface
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ declare(strict_types=1);
|
|||
namespace Sylius\Component\Core\Model;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
interface ChannelPricingInterface extends ResourceInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Core\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
interface ChannelPricingLogEntryInterface extends ResourceInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Core\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
interface ImageInterface extends ResourceInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ declare(strict_types=1);
|
|||
namespace Sylius\Component\Core\Model;
|
||||
|
||||
use Sylius\Component\Order\Model\OrderItemInterface as BaseOrderItemInterface;
|
||||
use Sylius\Component\Resource\Model\VersionedInterface;
|
||||
use Sylius\Resource\Model\VersionedInterface;
|
||||
|
||||
interface OrderItemInterface extends BaseOrderItemInterface, VersionedInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace Sylius\Component\Core\Model;
|
|||
|
||||
use Sylius\Component\Inventory\Model\StockableInterface;
|
||||
use Sylius\Component\Order\Model\OrderItemUnit as BaseOrderItemUnit;
|
||||
use Sylius\Component\Resource\Model\TimestampableTrait;
|
||||
use Sylius\Resource\Model\TimestampableTrait;
|
||||
use Sylius\Component\Shipping\Model\ShipmentInterface as BaseShipmentInterface;
|
||||
use Sylius\Component\Shipping\Model\ShippableInterface;
|
||||
use Webmozart\Assert\Assert;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ declare(strict_types=1);
|
|||
namespace Sylius\Component\Core\Model;
|
||||
|
||||
use Sylius\Component\Order\Model\OrderSequenceInterface as BaseOrderSequenceInterface;
|
||||
use Sylius\Component\Resource\Model\VersionedInterface;
|
||||
use Sylius\Resource\Model\VersionedInterface;
|
||||
|
||||
interface OrderSequenceInterface extends BaseOrderSequenceInterface, VersionedInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ use Doctrine\Common\Collections\Collection;
|
|||
use Sylius\Component\Channel\Model\ChannelInterface as BaseChannelInterface;
|
||||
use Sylius\Component\Product\Model\Product as BaseProduct;
|
||||
use Sylius\Component\Product\Model\ProductTranslationInterface as BaseProductTranslationInterface;
|
||||
use Sylius\Component\Resource\Model\TranslationInterface;
|
||||
use Sylius\Resource\Model\TranslationInterface;
|
||||
use Sylius\Component\Review\Model\ReviewInterface;
|
||||
use Webmozart\Assert\Assert;
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace Sylius\Component\Core\Model;
|
|||
use Doctrine\Common\Collections\Collection;
|
||||
use Sylius\Component\Channel\Model\ChannelsAwareInterface;
|
||||
use Sylius\Component\Product\Model\ProductInterface as BaseProductInterface;
|
||||
use Sylius\Component\Resource\Model\TranslationInterface;
|
||||
use Sylius\Resource\Model\TranslationInterface;
|
||||
use Sylius\Component\Review\Model\ReviewableInterface;
|
||||
use Sylius\Component\Review\Model\ReviewInterface;
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Core\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
interface ProductTaxonInterface extends ResourceInterface, PositionAwareInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace Sylius\Component\Core\Model;
|
|||
use Doctrine\Common\Collections\Collection;
|
||||
use Sylius\Component\Inventory\Model\StockableInterface;
|
||||
use Sylius\Component\Product\Model\ProductVariantInterface as BaseVariantInterface;
|
||||
use Sylius\Component\Resource\Model\VersionedInterface;
|
||||
use Sylius\Resource\Model\VersionedInterface;
|
||||
use Sylius\Component\Shipping\Model\ShippableInterface;
|
||||
use Sylius\Component\Shipping\Model\ShippingCategoryInterface;
|
||||
use Sylius\Component\Taxation\Model\TaxableInterface;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Core\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
interface ShopBillingDataInterface extends ResourceInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace Sylius\Component\Core\Model;
|
|||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\Common\Comparable;
|
||||
use Sylius\Component\Resource\Model\TimestampableTrait;
|
||||
use Sylius\Resource\Model\TimestampableTrait;
|
||||
use Sylius\Component\Taxonomy\Model\Taxon as BaseTaxon;
|
||||
use Sylius\Component\Taxonomy\Model\TaxonTranslation;
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Core\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\TimestampableInterface;
|
||||
use Sylius\Resource\Model\TimestampableInterface;
|
||||
use Sylius\Component\Taxonomy\Model\TaxonInterface as BaseTaxonInterface;
|
||||
|
||||
interface TaxonInterface extends BaseTaxonInterface, ImagesAwareInterface, TimestampableInterface
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace Sylius\Component\Core\Translation;
|
|||
use Sylius\Component\Core\Checker\CLIContextCheckerInterface;
|
||||
use Sylius\Component\Locale\Context\LocaleContextInterface;
|
||||
use Sylius\Component\Locale\Context\LocaleNotFoundException;
|
||||
use Sylius\Component\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface;
|
||||
use Sylius\Component\Resource\Translation\TranslatableEntityLocaleAssignerInterface;
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ use PhpSpec\ObjectBehavior;
|
|||
use Sylius\Component\Core\Model\ChannelPricingInterface;
|
||||
use Sylius\Component\Core\Model\ChannelPricingLogEntry;
|
||||
use Sylius\Component\Resource\Exception\UnsupportedMethodException;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
final class ChannelPricingLogEntryFactorySpec extends ObjectBehavior
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace spec\Sylius\Component\Core\Model;
|
|||
use PhpSpec\ObjectBehavior;
|
||||
use Sylius\Component\Core\Model\AdjustmentInterface;
|
||||
use Sylius\Component\Core\Model\OrderItemUnitInterface;
|
||||
use Sylius\Component\Resource\Model\VersionedInterface;
|
||||
use Sylius\Resource\Model\VersionedInterface;
|
||||
|
||||
final class OrderItemSpec extends ObjectBehavior
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace spec\Sylius\Component\Core\Model;
|
|||
use PhpSpec\ObjectBehavior;
|
||||
use Sylius\Component\Core\Model\OrderSequenceInterface;
|
||||
use Sylius\Component\Order\Model\OrderSequence as BaseOrderSequence;
|
||||
use Sylius\Component\Resource\Model\VersionedInterface;
|
||||
use Sylius\Resource\Model\VersionedInterface;
|
||||
|
||||
final class OrderSequenceSpec extends ObjectBehavior
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ use Sylius\Component\Core\Model\ProductImagesAwareInterface;
|
|||
use Sylius\Component\Core\Model\ProductVariant;
|
||||
use Sylius\Component\Core\Model\ProductVariantInterface;
|
||||
use Sylius\Component\Product\Model\ProductVariant as BaseProductVariant;
|
||||
use Sylius\Component\Resource\Model\VersionedInterface;
|
||||
use Sylius\Resource\Model\VersionedInterface;
|
||||
use Sylius\Component\Shipping\Model\ShippableInterface;
|
||||
use Sylius\Component\Shipping\Model\ShippingCategoryInterface;
|
||||
use Sylius\Component\Taxation\Model\TaxableInterface;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ use PhpSpec\ObjectBehavior;
|
|||
use Sylius\Component\Core\Checker\CLIContextCheckerInterface;
|
||||
use Sylius\Component\Locale\Context\LocaleContextInterface;
|
||||
use Sylius\Component\Locale\Context\LocaleNotFoundException;
|
||||
use Sylius\Component\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Resource\Model\TranslatableInterface;
|
||||
use Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface;
|
||||
use Sylius\Component\Resource\Translation\TranslatableEntityLocaleAssignerInterface;
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Currency\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\TimestampableTrait;
|
||||
use Sylius\Resource\Model\TimestampableTrait;
|
||||
use Symfony\Component\Intl\Currencies;
|
||||
|
||||
class Currency implements CurrencyInterface, \Stringable
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Currency\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Component\Resource\Model\TimestampableInterface;
|
||||
use Sylius\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\TimestampableInterface;
|
||||
|
||||
interface CurrencyInterface extends
|
||||
CodeAwareInterface,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Currency\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\TimestampableTrait;
|
||||
use Sylius\Resource\Model\TimestampableTrait;
|
||||
|
||||
class ExchangeRate implements ExchangeRateInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Currency\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
interface ExchangeRateInterface extends ResourceInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Customer\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\TimestampableTrait;
|
||||
use Sylius\Resource\Model\TimestampableTrait;
|
||||
|
||||
class Customer implements CustomerInterface, \Stringable
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Customer\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
interface CustomerGroupInterface extends ResourceInterface, CodeAwareInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Customer\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Component\Resource\Model\TimestampableInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\TimestampableInterface;
|
||||
|
||||
interface CustomerInterface extends TimestampableInterface, ResourceInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Inventory\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
interface InventoryUnitInterface extends ResourceInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Locale\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\TimestampableTrait;
|
||||
use Sylius\Resource\Model\TimestampableTrait;
|
||||
use Symfony\Component\Intl\Locales;
|
||||
|
||||
class Locale implements LocaleInterface, \Stringable
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Locale\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Component\Resource\Model\TimestampableInterface;
|
||||
use Sylius\Resource\Model\CodeAwareInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\TimestampableInterface;
|
||||
|
||||
interface LocaleInterface extends ResourceInterface, CodeAwareInterface, TimestampableInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace spec\Sylius\Component\Locale\Model;
|
|||
|
||||
use PhpSpec\ObjectBehavior;
|
||||
use Sylius\Component\Locale\Model\LocaleInterface;
|
||||
use Sylius\Component\Resource\Model\TimestampableInterface;
|
||||
use Sylius\Resource\Model\TimestampableInterface;
|
||||
|
||||
final class LocaleSpec extends ObjectBehavior
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Order\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\TimestampableTrait;
|
||||
use Sylius\Resource\Model\TimestampableTrait;
|
||||
|
||||
class Adjustment implements AdjustmentInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Order\Model;
|
||||
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Component\Resource\Model\TimestampableInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\TimestampableInterface;
|
||||
|
||||
interface AdjustmentInterface extends ResourceInterface, TimestampableInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace Sylius\Component\Order\Model;
|
|||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Sylius\Component\Resource\Model\TimestampableTrait;
|
||||
use Sylius\Resource\Model\TimestampableTrait;
|
||||
|
||||
class Order implements OrderInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ declare(strict_types=1);
|
|||
namespace Sylius\Component\Order\Model;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Component\Resource\Model\TimestampableInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\TimestampableInterface;
|
||||
|
||||
interface OrderInterface extends AdjustableInterface, ResourceInterface, TimestampableInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ declare(strict_types=1);
|
|||
namespace Sylius\Component\Order\Model;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Sylius\Component\Resource\Model\ResourceInterface;
|
||||
use Sylius\Resource\Model\ResourceInterface;
|
||||
|
||||
interface OrderItemInterface extends AdjustableInterface, OrderAwareInterface, ResourceInterface
|
||||
{
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue