[Maintenance] Update resource models FQCNs

This commit is contained in:
Jan Goralski 2024-08-30 09:59:26 +02:00
parent 8432b4e697
commit c4c7c568e8
No known key found for this signature in database
GPG key ID: 95D91BA380F31EDD
177 changed files with 321 additions and 321 deletions

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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

View file

@ -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;

View file

@ -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

View file

@ -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

View file

@ -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;

View file

@ -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

View file

@ -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
{

View file

@ -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;

View file

@ -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;

View file

@ -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
{

View file

@ -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

View file

@ -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
{

View file

@ -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
{

View file

@ -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

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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;

View file

@ -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;

View file

@ -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);

View file

@ -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();
}

View file

@ -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

View file

@ -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
{

View file

@ -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;

View file

@ -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

View file

@ -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

View file

@ -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>

View file

@ -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>

View file

@ -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;

View file

@ -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;

View file

@ -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

View file

@ -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
{

View file

@ -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

View file

@ -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
{

View file

@ -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;

View file

@ -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;

View file

@ -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

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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;

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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,

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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,

View file

@ -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

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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;

View file

@ -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
{

View file

@ -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;

View file

@ -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;

View file

@ -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
{

View file

@ -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;

View file

@ -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
{

View file

@ -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;

View file

@ -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

View file

@ -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;

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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;

View file

@ -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;

View file

@ -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

View file

@ -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,

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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