Browse Source

Intégration app product

packProduct
Fab 3 years ago
parent
commit
c6baa27782
100 changed files with 282 additions and 348 deletions
  1. +12
    -6
      Controller/Config/TaxRateAdminController.php
  2. +7
    -1
      Controller/Config/UnitAdminController.php
  3. +7
    -0
      Controller/Credit/CreditHistoryAdminController.php
  4. +7
    -0
      Controller/Merchant/MerchantAdminController.php
  5. +7
    -1
      Controller/Newsletter/NewsletterAdminController.php
  6. +17
    -3
      Controller/PointSale/PointSaleAdminController.php
  7. +3
    -1
      Controller/Reminder/ReminderAdminController.php
  8. +8
    -0
      Controller/Section/OpeningAdminController.php
  9. +11
    -3
      Controller/Section/SectionAdminController.php
  10. +8
    -1
      Controller/Site/NewsAdminController.php
  11. +10
    -1
      Controller/Site/PageAdminController.php
  12. +8
    -1
      Controller/User/GroupUserAdminController.php
  13. +4
    -5
      Factory/Address/AddressFactory.php
  14. +0
    -8
      Factory/Address/AddressFactoryInterface.php
  15. +1
    -1
      Factory/Config/TaxRateFactory.php
  16. +0
    -8
      Factory/Config/TaxRateFactoryInterface.php
  17. +1
    -1
      Factory/Config/UnitFactory.php
  18. +0
    -8
      Factory/Config/UnitFactoryInterface.php
  19. +1
    -2
      Factory/Credit/CreditHistoryFactory.php
  20. +0
    -8
      Factory/Credit/CreditHistoryFactoryInterface.php
  21. +1
    -1
      Factory/File/DocumentFactory.php
  22. +0
    -8
      Factory/File/DocumentFactoryInterface.php
  23. +1
    -1
      Factory/Merchant/MerchantFactory.php
  24. +0
    -8
      Factory/Merchant/MerchantFactoryInterface.php
  25. +0
    -1
      Factory/Newsletter/NewsletterFactory.php
  26. +1
    -1
      Factory/Order/OrderPaymentFactory.php
  27. +0
    -8
      Factory/Order/OrderPaymentFactoryInterface.php
  28. +1
    -1
      Factory/Order/OrderProductFactory.php
  29. +0
    -8
      Factory/Order/OrderProductFactoryInterface.php
  30. +1
    -1
      Factory/Order/OrderProductReductionCatalogFactory.php
  31. +0
    -8
      Factory/Order/OrderProductReductionCatalogFactoryInterface.php
  32. +1
    -1
      Factory/Order/OrderProductRefundFactory.php
  33. +0
    -8
      Factory/Order/OrderProductRefundFactoryInterface.php
  34. +1
    -1
      Factory/Order/OrderReductionCartFactory.php
  35. +0
    -7
      Factory/Order/OrderReductionCartFactoryInterface.php
  36. +1
    -1
      Factory/Order/OrderReductionCreditFactory.php
  37. +0
    -8
      Factory/Order/OrderReductionCreditFactoryInterface.php
  38. +1
    -1
      Factory/Order/OrderRefundFactory.php
  39. +0
    -8
      Factory/Order/OrderRefundFactoryInterface.php
  40. +6
    -6
      Factory/Order/OrderShopFactory.php
  41. +0
    -8
      Factory/Order/OrderShopFactoryInterface.php
  42. +1
    -1
      Factory/Order/OrderStatusFactory.php
  43. +0
    -8
      Factory/Order/OrderStatusFactoryInterface.php
  44. +1
    -1
      Factory/Order/OrderStatusHistoryFactory.php
  45. +0
    -8
      Factory/Order/OrderStatusHistoryFactoryInterface.php
  46. +4
    -5
      Factory/PointSale/PointSaleFactory.php
  47. +0
    -8
      Factory/PointSale/PointSaleFactoryInterface.php
  48. +6
    -8
      Factory/Product/ProductCategoryFactory.php
  49. +0
    -8
      Factory/Product/ProductCategoryFactoryInterface.php
  50. +1
    -1
      Factory/Product/ProductFactory.php
  51. +0
    -8
      Factory/Product/ProductFactoryInterface.php
  52. +6
    -8
      Factory/Product/ProductFamilyFactory.php
  53. +0
    -8
      Factory/Product/ProductFamilyFactoryInterface.php
  54. +4
    -5
      Factory/Reduction/ReductionCartFactory.php
  55. +0
    -8
      Factory/Reduction/ReductionCartFactoryInterface.php
  56. +4
    -5
      Factory/Reduction/ReductionCatalogFactory.php
  57. +0
    -8
      Factory/Reduction/ReductionCatalogFactoryInterface.php
  58. +4
    -5
      Factory/Reduction/ReductionCreditFactory.php
  59. +0
    -8
      Factory/Reduction/ReductionCreditFactoryInterface.php
  60. +4
    -4
      Factory/Section/OpeningFactory.php
  61. +0
    -8
      Factory/Section/OpeningFactoryInterface.php
  62. +4
    -6
      Factory/Section/SectionFactory.php
  63. +0
    -8
      Factory/Section/SectionFactoryInterface.php
  64. +3
    -4
      Factory/User/GroupUserFactory.php
  65. +0
    -8
      Factory/User/GroupUserFactoryInterface.php
  66. +3
    -4
      Factory/User/UserMerchantFactory.php
  67. +1
    -1
      Factory/User/VisitorFactory.php
  68. +0
    -8
      Factory/User/VisitorFactoryInterface.php
  69. +19
    -1
      Model/Newsletter/NewsletterModel.php
  70. +3
    -1
      Repository/Address/AddressStore.php
  71. +2
    -1
      Repository/Config/TaxRateStore.php
  72. +3
    -1
      Repository/Config/UnitStore.php
  73. +3
    -1
      Repository/Credit/CreditHistoryStore.php
  74. +3
    -1
      Repository/File/DocumentStore.php
  75. +3
    -1
      Repository/Merchant/MerchantStore.php
  76. +3
    -1
      Repository/Order/OrderPaymentStore.php
  77. +3
    -1
      Repository/Order/OrderProductReductionCatalogStore.php
  78. +3
    -1
      Repository/Order/OrderProductRefundStore.php
  79. +3
    -1
      Repository/Order/OrderProductStore.php
  80. +3
    -1
      Repository/Order/OrderReductionCartStore.php
  81. +3
    -1
      Repository/Order/OrderReductionCreditStore.php
  82. +3
    -1
      Repository/Order/OrderRefundStore.php
  83. +3
    -1
      Repository/Order/OrderShopStore.php
  84. +3
    -1
      Repository/Order/OrderStatusHistoryStore.php
  85. +3
    -1
      Repository/Order/OrderStatusStore.php
  86. +1
    -1
      Repository/PointSale/PointSaleRepositoryQuery.php
  87. +3
    -1
      Repository/PointSale/PointSaleStore.php
  88. +3
    -1
      Repository/Product/ProductCategoryStore.php
  89. +3
    -1
      Repository/Product/ProductFamilyStore.php
  90. +3
    -1
      Repository/Product/ProductStore.php
  91. +3
    -1
      Repository/Reduction/ReductionCartStore.php
  92. +3
    -1
      Repository/Reduction/ReductionCatalogStore.php
  93. +3
    -1
      Repository/Reduction/ReductionCreditStore.php
  94. +3
    -1
      Repository/Section/OpeningStore.php
  95. +3
    -1
      Repository/Section/SectionStore.php
  96. +3
    -1
      Repository/Setting/MerchantSettingStore.php
  97. +3
    -1
      Repository/Setting/SectionSettingStore.php
  98. +3
    -1
      Repository/User/GroupUserStore.php
  99. +3
    -1
      Repository/User/UserMerchantStore.php
  100. +3
    -1
      Repository/User/VisitorStore.php

+ 12
- 6
Controller/Config/TaxRateAdminController.php View File

use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField; use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField;
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
use Lc\CaracoleBundle\Controller\AdminControllerTrait; use Lc\CaracoleBundle\Controller\AdminControllerTrait;
use Lc\CaracoleBundle\Factory\Config\TaxRateFactory;
use Lc\SovBundle\Controller\AbstractAdminController; use Lc\SovBundle\Controller\AbstractAdminController;


abstract class TaxRateAdminController extends AbstractAdminController abstract class TaxRateAdminController extends AbstractAdminController
{ {
use AdminControllerTrait; use AdminControllerTrait;


public function configureCrud(Crud $crud): Crud
{
return $crud->setSearchFields(['id', 'title', 'value']);
}

public function configureFields(string $pageName): iterable public function configureFields(string $pageName): iterable
{ {
return [ return [
IntegerField::new('id', 'ID')->hideOnForm(),
TextField::new('title'), TextField::new('title'),
NumberField::new('value') NumberField::new('value')
]; ];
} }

public function configureCrud(Crud $crud): Crud
{
return $crud->setSearchFields(['id', 'title', 'value']);
}

public function createEntity(string $entityFqcn)
{
$factory = new TaxRateFactory();
return $factory->create();
}
} }

+ 7
- 1
Controller/Config/UnitAdminController.php View File

use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField; use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField;
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
use Lc\CaracoleBundle\Controller\AdminControllerTrait; use Lc\CaracoleBundle\Controller\AdminControllerTrait;
use Lc\CaracoleBundle\Factory\Config\UnitFactory;
use Lc\SovBundle\Controller\AbstractAdminController; use Lc\SovBundle\Controller\AbstractAdminController;


abstract class UnitAdminController extends AbstractAdminController abstract class UnitAdminController extends AbstractAdminController
public function configureFields(string $pageName): iterable public function configureFields(string $pageName): iterable
{ {
return [ return [
IntegerField::new('id', 'ID')->hideOnForm(),
TextField::new('unit'), TextField::new('unit'),
TextField::new('wording'), TextField::new('wording'),
TextField::new('wordingUnit'), TextField::new('wordingUnit'),
AssociationField::new('unitReference'), AssociationField::new('unitReference'),
]; ];
} }

public function createEntity(string $entityFqcn)
{
$factory = new UnitFactory();
return $factory->create();
}
} }

+ 7
- 0
Controller/Credit/CreditHistoryAdminController.php View File

use EasyCorp\Bundle\EasyAdminBundle\Provider\AdminContextProvider; use EasyCorp\Bundle\EasyAdminBundle\Provider\AdminContextProvider;
use EasyCorp\Bundle\EasyAdminBundle\Router\AdminUrlGenerator; use EasyCorp\Bundle\EasyAdminBundle\Router\AdminUrlGenerator;
use Lc\CaracoleBundle\Controller\AdminControllerTrait; use Lc\CaracoleBundle\Controller\AdminControllerTrait;
use Lc\CaracoleBundle\Factory\Credit\CreditHistoryFactory;
use Lc\CaracoleBundle\Model\Credit\CreditHistoryInterface; use Lc\CaracoleBundle\Model\Credit\CreditHistoryInterface;
use Lc\CaracoleBundle\Model\Credit\CreditHistoryModel; use Lc\CaracoleBundle\Model\Credit\CreditHistoryModel;
use Lc\CaracoleBundle\Model\User\UserMerchantInterface; use Lc\CaracoleBundle\Model\User\UserMerchantInterface;
} }
} }


public function createEntity(string $entityFqcn)
{
$factory = new CreditHistoryFactory();
return $factory->create();
}

public function persistEntity(EntityManagerInterface $entityManager, $entityInstance): void public function persistEntity(EntityManagerInterface $entityManager, $entityInstance): void
{ {
$entityInstance->setUserMerchant($this->getUserMerchant()); $entityInstance->setUserMerchant($this->getUserMerchant());

+ 7
- 0
Controller/Merchant/MerchantAdminController.php View File

use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField; use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField;
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
use Lc\CaracoleBundle\Controller\AdminControllerTrait; use Lc\CaracoleBundle\Controller\AdminControllerTrait;
use Lc\CaracoleBundle\Factory\Merchant\MerchantFactory;
use Lc\CaracoleBundle\Field\Address\AddressField; use Lc\CaracoleBundle\Field\Address\AddressField;
use Lc\SovBundle\Controller\AbstractAdminController; use Lc\SovBundle\Controller\AbstractAdminController;
use Lc\SovBundle\Field\CKEditorField; use Lc\SovBundle\Field\CKEditorField;
); );
} }


public function createEntity(string $entityFqcn)
{
$factory = new MerchantFactory();
return $factory->create();
}

} }

+ 7
- 1
Controller/Newsletter/NewsletterAdminController.php View File

namespace Lc\CaracoleBundle\Controller\Newsletter; namespace Lc\CaracoleBundle\Controller\Newsletter;


use Lc\CaracoleBundle\Controller\AdminControllerTrait; use Lc\CaracoleBundle\Controller\AdminControllerTrait;
use Lc\CaracoleBundle\Factory\Newsletter\NewsletterFactory;
use Lc\SovBundle\Controller\Newsletter\NewsletterAdminController as SovNewsletterAdminController; use Lc\SovBundle\Controller\Newsletter\NewsletterAdminController as SovNewsletterAdminController;


abstract class NewsletterAdminController extends SovNewsletterAdminController abstract class NewsletterAdminController extends SovNewsletterAdminController
{ {

use AdminControllerTrait; use AdminControllerTrait;


public function createEntity(string $entityFqcn)
{
$factory = new NewsletterFactory();
$factory->setMerchant($this->get('merchant_resolver')->getCurrent());
return $factory->create();
}
} }

+ 17
- 3
Controller/PointSale/PointSaleAdminController.php View File

use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField; use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField;
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
use Lc\CaracoleBundle\Controller\AdminControllerTrait; use Lc\CaracoleBundle\Controller\AdminControllerTrait;
use Lc\CaracoleBundle\Factory\PointSale\PointSaleFactory;
use Lc\CaracoleBundle\Field\Address\AddressField; use Lc\CaracoleBundle\Field\Address\AddressField;
use Lc\SovBundle\Controller\AbstractAdminController; use Lc\SovBundle\Controller\AbstractAdminController;
use Lc\SovBundle\Field\BooleanField;
use Lc\SovBundle\Field\StatusField; use Lc\SovBundle\Field\StatusField;


abstract class PointSaleAdminController extends AbstractAdminController abstract class PointSaleAdminController extends AbstractAdminController


public function configureFields(string $pageName): iterable public function configureFields(string $pageName): iterable
{ {
$panel = parent::configureFields($pageName);


return array_merge( return array_merge(
[ [
NumberField::new('orderAmountMin') NumberField::new('orderAmountMin')
->setCustomOption('appendHtml','€') ->setCustomOption('appendHtml','€')
->hideOnIndex(), ->hideOnIndex(),
StatusField::new('status'),
NumberField::new('deliveryPrice')
->setCustomOption('appendHtml','€')
->hideOnIndex(),
BooleanField::new('isPublic'),
BooleanField::new('isDepository'),
StatusField::new('status')
->hideOnIndex(),
FormField::addPanel('address'), FormField::addPanel('address'),
AddressField::new('address') AddressField::new('address')
->setRequired(true) ->setRequired(true)
], ],
$panel
$this->getSeoPanel(),
$this->getConfPanel(),
); );
} }


public function createEntity(string $entityFqcn)
{
$factory = new PointSaleFactory();
$currentMerchant = $this->get('merchant_resolver')->getCurrent();
return $factory->create($currentMerchant);
}
} }

+ 3
- 1
Controller/Reminder/ReminderAdminController.php View File

namespace Lc\CaracoleBundle\Controller\Reminder; namespace Lc\CaracoleBundle\Controller\Reminder;


use Lc\CaracoleBundle\Controller\AdminControllerTrait; use Lc\CaracoleBundle\Controller\AdminControllerTrait;
use Lc\CaracoleBundle\Factory\Reminder\ReminderFactory;
use Lc\SovBundle\Controller\Reminder\ReminderAdminController as SovReminderAdminController; use Lc\SovBundle\Controller\Reminder\ReminderAdminController as SovReminderAdminController;


class ReminderAdminController extends SovReminderAdminController class ReminderAdminController extends SovReminderAdminController


public function createEntity(string $crudAction = null, string $crudControllerFqcn = null, int $entityId = null) public function createEntity(string $crudAction = null, string $crudControllerFqcn = null, int $entityId = null)
{ {
return $this->reminderFactory
$factory = new ReminderFactory();
return $factory
->setMerchant($this->get('merchant_resolver')->getCurrent()) ->setMerchant($this->get('merchant_resolver')->getCurrent())
->setSection($this->get('section_resolver')->getCurrent()) ->setSection($this->get('section_resolver')->getCurrent())
->create($crudAction, $crudControllerFqcn, $entityId); ->create($crudAction, $crudControllerFqcn, $entityId);

+ 8
- 0
Controller/Section/OpeningAdminController.php View File

use EasyCorp\Bundle\EasyAdminBundle\Field\ChoiceField; use EasyCorp\Bundle\EasyAdminBundle\Field\ChoiceField;
use EasyCorp\Bundle\EasyAdminBundle\Field\TimeField; use EasyCorp\Bundle\EasyAdminBundle\Field\TimeField;
use Lc\CaracoleBundle\Controller\AdminControllerTrait; use Lc\CaracoleBundle\Controller\AdminControllerTrait;
use Lc\CaracoleBundle\Factory\Section\OpeningFactory;
use Lc\SovBundle\Controller\AbstractAdminController; use Lc\SovBundle\Controller\AbstractAdminController;


abstract class OpeningAdminController extends AbstractAdminController abstract class OpeningAdminController extends AbstractAdminController
return $crud; return $crud;
} }


public function createEntity(string $entityFqcn)
{
$factory = new OpeningFactory();
$currentSection = $this->get('section_resolver')->getCurrent();
return $factory->create($currentSection);
}

} }

+ 11
- 3
Controller/Section/SectionAdminController.php View File

use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField; use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField;
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
use Lc\CaracoleBundle\Controller\AdminControllerTrait; use Lc\CaracoleBundle\Controller\AdminControllerTrait;
use Lc\CaracoleBundle\Factory\Section\SectionFactory;
use Lc\CaracoleBundle\Form\Section\OpeningsFormType; use Lc\CaracoleBundle\Form\Section\OpeningsFormType;
use Lc\CaracoleBundle\Model\Section\SectionModel; use Lc\CaracoleBundle\Model\Section\SectionModel;
use Lc\SovBundle\Controller\AbstractAdminController; use Lc\SovBundle\Controller\AbstractAdminController;


public function configureFields(string $pageName): iterable public function configureFields(string $pageName): iterable
{ {
$panel = parent::configureFields($pageName);

return array_merge( return array_merge(
[ [
FormField::addPanel('general'), FormField::addPanel('general'),
TextField::new('title'), TextField::new('title'),
ChoiceField::new('cycle') ChoiceField::new('cycle')
->setRequired(true) ->setRequired(true)
->hideOnIndex()
->setChoices( ->setChoices(
[ [
'Jour' => SectionModel::CYCLE_DAY, 'Jour' => SectionModel::CYCLE_DAY,
BooleanField::new('isDefault', 'Section par défaut'), BooleanField::new('isDefault', 'Section par défaut'),
StatusField::new('status'), StatusField::new('status'),
], ],
$panel
$this->getSeoPanel(),
$this->getConfPanel(),
); );
} }


public function createEntity(string $entityFqcn)
{
$factory = new SectionFactory();
$currentMerchant = $this->get('merchant_resolver')->getCurrent();
return $factory->create($currentMerchant);
}

} }

+ 8
- 1
Controller/Site/NewsAdminController.php View File

namespace Lc\CaracoleBundle\Controller\Site; namespace Lc\CaracoleBundle\Controller\Site;


use Lc\CaracoleBundle\Controller\AdminControllerTrait; use Lc\CaracoleBundle\Controller\AdminControllerTrait;
use Lc\CaracoleBundle\Factory\Site\NewsFactory;
use Lc\SovBundle\Controller\Site\NewsAdminController as SovNewsAdminController; use Lc\SovBundle\Controller\Site\NewsAdminController as SovNewsAdminController;


abstract class NewsAdminController extends SovNewsAdminController abstract class NewsAdminController extends SovNewsAdminController
{ {

use AdminControllerTrait; use AdminControllerTrait;


public function createEntity(string $entityFqcn)
{
$factory = new NewsFactory();
$currentMerchant = $this->get('merchant_resolver')->getCurrent();
$factory->setMerchant($currentMerchant);
return $factory->create();
}
} }

+ 10
- 1
Controller/Site/PageAdminController.php View File

namespace Lc\CaracoleBundle\Controller\Site; namespace Lc\CaracoleBundle\Controller\Site;


use Lc\CaracoleBundle\Controller\AdminControllerTrait; use Lc\CaracoleBundle\Controller\AdminControllerTrait;
use Lc\CaracoleBundle\Factory\Site\PageFactory;
use Lc\SovBundle\Controller\Site\PageAdminController as SovPageAdminController; use Lc\SovBundle\Controller\Site\PageAdminController as SovPageAdminController;


abstract class PageAdminController extends SovPageAdminController abstract class PageAdminController extends SovPageAdminController
{ {

use AdminControllerTrait; use AdminControllerTrait;


public function createEntity(string $entityFqcn)
{
$factory = new PageFactory();
$currentMerchant = $this->get('merchant_resolver')->getCurrent();
$currentSection = $this->get('section_resolver')->getCurrent();
$factory->setMerchant($currentMerchant);
$factory->setSection($currentSection);
return $factory->create();
}
} }

+ 8
- 1
Controller/User/GroupUserAdminController.php View File

namespace Lc\CaracoleBundle\Controller\User; namespace Lc\CaracoleBundle\Controller\User;


use Lc\CaracoleBundle\Controller\AdminControllerTrait; use Lc\CaracoleBundle\Controller\AdminControllerTrait;
use Lc\CaracoleBundle\Factory\User\GroupUserFactory;
use Lc\SovBundle\Controller\User\GroupUserAdminController as SovGroupUserAdminController; use Lc\SovBundle\Controller\User\GroupUserAdminController as SovGroupUserAdminController;


abstract class GroupUserAdminController extends SovGroupUserAdminController abstract class GroupUserAdminController extends SovGroupUserAdminController
{ {

use AdminControllerTrait; use AdminControllerTrait;


public function createEntity(string $entityFqcn)
{
$factory = new GroupUserFactory();
$currentMerchant = $this->get('merchant_resolver')->getCurrent();
$factory->setMerchant($currentMerchant);
return $factory->create();
}
} }

+ 4
- 5
Factory/Address/AddressFactory.php View File

namespace Lc\CaracoleBundle\Factory\Address; namespace Lc\CaracoleBundle\Factory\Address;


use App\Entity\Address\Address; use App\Entity\Address\Address;
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
use Lc\CaracoleBundle\Model\Address\AddressInterface; use Lc\CaracoleBundle\Model\Address\AddressInterface;
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class AddressFactory extends AbstractFactory implements AddressFactoryInterface
class AddressFactory extends AbstractFactory
{ {
use MerchantFactoryTrait;


public function create(): AddressInterface
public function create(MerchantInterface $merchant = null): AddressInterface
{ {
$address = new Address(); $address = new Address();


$address->setMerchant($this->merchant);
$address->setMerchant($merchant);


return $address; return $address;
} }

+ 0
- 8
Factory/Address/AddressFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Address;

interface AddressFactoryInterface
{

}

+ 1
- 1
Factory/Config/TaxRateFactory.php View File

use Lc\CaracoleBundle\Model\Config\TaxRateInterface; use Lc\CaracoleBundle\Model\Config\TaxRateInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class TaxRateFactory extends AbstractFactory implements TaxRateFactoryInterface
class TaxRateFactory extends AbstractFactory
{ {
public function create(): TaxRateInterface public function create(): TaxRateInterface
{ {

+ 0
- 8
Factory/Config/TaxRateFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Config;

interface TaxRateFactoryInterface
{

}

+ 1
- 1
Factory/Config/UnitFactory.php View File

use Lc\CaracoleBundle\Model\Config\UnitInterface; use Lc\CaracoleBundle\Model\Config\UnitInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class UnitFactory extends AbstractFactory implements UnitFactoryInterface
class UnitFactory extends AbstractFactory
{ {
public function create(): UnitInterface public function create(): UnitInterface
{ {

+ 0
- 8
Factory/Config/UnitFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Config;

interface UnitFactoryInterface
{

}

+ 1
- 2
Factory/Credit/CreditHistoryFactory.php View File

namespace Lc\CaracoleBundle\Factory\Credit; namespace Lc\CaracoleBundle\Factory\Credit;


use App\Entity\Credit\CreditHistory; use App\Entity\Credit\CreditHistory;
use Lc\CaracoleBundle\Factory\CreditHistory\CreditHistoryFactoryInterface;
use Lc\CaracoleBundle\Model\Credit\CreditHistoryInterface; use Lc\CaracoleBundle\Model\Credit\CreditHistoryInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class CreditHistoryFactory extends AbstractFactory implements CreditHistoryFactoryInterface
class CreditHistoryFactory extends AbstractFactory
{ {
public function create(): CreditHistoryInterface public function create(): CreditHistoryInterface
{ {

+ 0
- 8
Factory/Credit/CreditHistoryFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Credit;

interface CreditHistoryFactoryInterface
{

}

+ 1
- 1
Factory/File/DocumentFactory.php View File

use Lc\CaracoleBundle\Model\File\DocumentInterface; use Lc\CaracoleBundle\Model\File\DocumentInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class DocumentFactory extends AbstractFactory implements DocumentFactoryInterface
class DocumentFactory extends AbstractFactory
{ {
use MerchantFactoryTrait; use MerchantFactoryTrait;



+ 0
- 8
Factory/File/DocumentFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\File;

interface DocumentFactoryInterface
{

}

+ 1
- 1
Factory/Merchant/MerchantFactory.php View File

use Lc\CaracoleBundle\Model\Merchant\MerchantInterface; use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class MerchantFactory extends AbstractFactory implements MerchantFactoryInterface
class MerchantFactory extends AbstractFactory
{ {
public function create(): MerchantInterface public function create(): MerchantInterface
{ {

+ 0
- 8
Factory/Merchant/MerchantFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Merchant;

interface MerchantFactoryInterface
{

}

+ 0
- 1
Factory/Newsletter/NewsletterFactory.php View File



namespace Lc\CaracoleBundle\Factory\Newsletter; namespace Lc\CaracoleBundle\Factory\Newsletter;


use App\Entity\Newsletter\Newsletter;
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
use Lc\SovBundle\Model\Newsletter\NewsletterInterface; use Lc\SovBundle\Model\Newsletter\NewsletterInterface;
use Lc\SovBundle\Factory\Newsletter\NewsletterFactory as SovNewsletterFactory; use Lc\SovBundle\Factory\Newsletter\NewsletterFactory as SovNewsletterFactory;

+ 1
- 1
Factory/Order/OrderPaymentFactory.php View File

use Lc\CaracoleBundle\Model\Order\OrderPaymentInterface; use Lc\CaracoleBundle\Model\Order\OrderPaymentInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class OrderPaymentFactory extends AbstractFactory implements OrderPaymentFactoryInterface
class OrderPaymentFactory extends AbstractFactory
{ {
public function create(): OrderPaymentInterface public function create(): OrderPaymentInterface
{ {

+ 0
- 8
Factory/Order/OrderPaymentFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Order;

interface OrderPaymentFactoryInterface
{

}

+ 1
- 1
Factory/Order/OrderProductFactory.php View File

use Lc\CaracoleBundle\Model\Order\OrderProductInterface; use Lc\CaracoleBundle\Model\Order\OrderProductInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class OrderProductFactory extends AbstractFactory implements OrderProductFactoryInterface
class OrderProductFactory extends AbstractFactory
{ {
public function create(): OrderProductInterface public function create(): OrderProductInterface
{ {

+ 0
- 8
Factory/Order/OrderProductFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Order;

interface OrderProductFactoryInterface
{

}

+ 1
- 1
Factory/Order/OrderProductReductionCatalogFactory.php View File

use Lc\CaracoleBundle\Model\Order\OrderProductReductionCatalogInterface; use Lc\CaracoleBundle\Model\Order\OrderProductReductionCatalogInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class OrderProductReductionCatalogFactory extends AbstractFactory implements OrderProductReductionCatalogFactoryInterface
class OrderProductReductionCatalogFactory extends AbstractFactory
{ {
public function create(): OrderProductReductionCatalogInterface public function create(): OrderProductReductionCatalogInterface
{ {

+ 0
- 8
Factory/Order/OrderProductReductionCatalogFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Order;

interface OrderProductReductionCatalogFactoryInterface
{

}

+ 1
- 1
Factory/Order/OrderProductRefundFactory.php View File

use Lc\CaracoleBundle\Model\Order\OrderProductRefundInterface; use Lc\CaracoleBundle\Model\Order\OrderProductRefundInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class OrderProductRefundFactory extends AbstractFactory implements OrderProductRefundFactoryInterface
class OrderProductRefundFactory extends AbstractFactory
{ {
public function create(): OrderProductRefundInterface public function create(): OrderProductRefundInterface
{ {

+ 0
- 8
Factory/Order/OrderProductRefundFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Order;

interface OrderProductRefundFactoryInterface
{

}

+ 1
- 1
Factory/Order/OrderReductionCartFactory.php View File

use Lc\CaracoleBundle\Model\Order\OrderReductionCartInterface; use Lc\CaracoleBundle\Model\Order\OrderReductionCartInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class OrderReductionCartFactory extends AbstractFactory implements OrderReductionCartFactoryInterface
class OrderReductionCartFactory extends AbstractFactory
{ {
public function create(): OrderReductionCartInterface public function create(): OrderReductionCartInterface
{ {

+ 0
- 7
Factory/Order/OrderReductionCartFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Order;

interface OrderReductionCartFactoryInterface{

}

+ 1
- 1
Factory/Order/OrderReductionCreditFactory.php View File

use Lc\CaracoleBundle\Model\Order\OrderReductionCreditInterface; use Lc\CaracoleBundle\Model\Order\OrderReductionCreditInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class OrderReductionCreditFactory extends AbstractFactory implements OrderReductionCreditFactoryInterface
class OrderReductionCreditFactory extends AbstractFactory
{ {
public function create(): OrderReductionCreditInterface public function create(): OrderReductionCreditInterface
{ {

+ 0
- 8
Factory/Order/OrderReductionCreditFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Order;

interface OrderReductionCreditFactoryInterface
{

}

+ 1
- 1
Factory/Order/OrderRefundFactory.php View File

use Lc\CaracoleBundle\Model\Order\OrderRefundInterface; use Lc\CaracoleBundle\Model\Order\OrderRefundInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class OrderRefundFactory extends AbstractFactory implements OrderRefundFactoryInterface
class OrderRefundFactory extends AbstractFactory
{ {
public function create(): OrderRefundInterface public function create(): OrderRefundInterface
{ {

+ 0
- 8
Factory/Order/OrderRefundFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Order;

interface OrderRefundFactoryInterface
{

}

+ 6
- 6
Factory/Order/OrderShopFactory.php View File

use App\Entity\Order\OrderShop; use App\Entity\Order\OrderShop;
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
use Lc\CaracoleBundle\Factory\SectionFactoryTrait; use Lc\CaracoleBundle\Factory\SectionFactoryTrait;
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
use Lc\CaracoleBundle\Model\Order\OrderShopInterface; use Lc\CaracoleBundle\Model\Order\OrderShopInterface;
use Lc\CaracoleBundle\Model\Section\SectionInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class OrderShopFactory extends AbstractFactory implements OrderShopFactoryInterface
class OrderShopFactory extends AbstractFactory
{ {
use MerchantFactoryTrait;
use SectionFactoryTrait;


public function create(): OrderShopInterface
public function create(MerchantInterface $merchant, SectionInterface $section): OrderShopInterface
{ {
$orderShop = new OrderShop(); $orderShop = new OrderShop();


$orderShop->setMerchant($this->merchant);
$orderShop->setSection($this->section);
$orderShop->setMerchant($merchant);
$orderShop->setSection($section);


return $orderShop; return $orderShop;
} }

+ 0
- 8
Factory/Order/OrderShopFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Order;

interface OrderShopFactoryInterface
{

}

+ 1
- 1
Factory/Order/OrderStatusFactory.php View File

use Lc\CaracoleBundle\Model\Order\OrderStatusInterface; use Lc\CaracoleBundle\Model\Order\OrderStatusInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class OrderStatusFactory extends AbstractFactory implements OrderStatusFactoryInterface
class OrderStatusFactory extends AbstractFactory
{ {
public function create(): OrderStatusInterface public function create(): OrderStatusInterface
{ {

+ 0
- 8
Factory/Order/OrderStatusFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Order;

interface OrderStatusFactoryInterface
{

}

+ 1
- 1
Factory/Order/OrderStatusHistoryFactory.php View File

use Lc\CaracoleBundle\Model\Order\OrderStatusHistoryInterface; use Lc\CaracoleBundle\Model\Order\OrderStatusHistoryInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class OrderStatusHistoryFactory extends AbstractFactory implements OrderStatusHistoryFactoryInterface
class OrderStatusHistoryFactory extends AbstractFactory
{ {
public function create(): OrderStatusHistoryInterface public function create(): OrderStatusHistoryInterface
{ {

+ 0
- 8
Factory/Order/OrderStatusHistoryFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Order;

interface OrderStatusHistoryFactoryInterface
{

}

+ 4
- 5
Factory/PointSale/PointSaleFactory.php View File

namespace Lc\CaracoleBundle\Factory\PointSale; namespace Lc\CaracoleBundle\Factory\PointSale;


use App\Entity\PointSale\PointSale; use App\Entity\PointSale\PointSale;
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
use Lc\CaracoleBundle\Model\PointSale\PointSaleInterface; use Lc\CaracoleBundle\Model\PointSale\PointSaleInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class PointSaleFactory extends AbstractFactory implements PointSaleFactoryInterface
class PointSaleFactory extends AbstractFactory
{ {
use MerchantFactoryTrait;


public function create(): PointSaleInterface
public function create(MerchantInterface $merchant): PointSaleInterface
{ {
$pointSale = new PointSale(); $pointSale = new PointSale();


$pointSale->addMerchant($this->merchant);
$pointSale->addMerchant($merchant);


return $pointSale; return $pointSale;
} }

+ 0
- 8
Factory/PointSale/PointSaleFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\PointSale;

interface PointSaleFactoryInterface
{

}

+ 6
- 8
Factory/Product/ProductCategoryFactory.php View File

namespace Lc\CaracoleBundle\Factory\Product; namespace Lc\CaracoleBundle\Factory\Product;


use App\Entity\Product\ProductCategory; use App\Entity\Product\ProductCategory;
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
use Lc\CaracoleBundle\Factory\SectionFactoryTrait;
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
use Lc\CaracoleBundle\Model\Product\ProductCategoryInterface; use Lc\CaracoleBundle\Model\Product\ProductCategoryInterface;
use Lc\CaracoleBundle\Model\Section\SectionInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class ProductCategoryFactory extends AbstractFactory implements ProductCategoryFactoryInterface
class ProductCategoryFactory extends AbstractFactory
{ {
use MerchantFactoryTrait;
use SectionFactoryTrait;


public function create(): ProductCategoryInterface
public function create(MerchantInterface $merchant, SectionInterface $section): ProductCategoryInterface
{ {
$productCategory = new ProductCategory(); $productCategory = new ProductCategory();


$productCategory->setMerchant($this->merchant);
$productCategory->setSection($this->section);
$productCategory->setMerchant($merchant);
$productCategory->setSection($section);


return $productCategory; return $productCategory;
} }

+ 0
- 8
Factory/Product/ProductCategoryFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Product;

interface ProductCategoryFactoryInterface
{

}

+ 1
- 1
Factory/Product/ProductFactory.php View File

use Lc\CaracoleBundle\Model\Product\ProductInterface; use Lc\CaracoleBundle\Model\Product\ProductInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class ProductFactory extends AbstractFactory implements ProductFactoryInterface
class ProductFactory extends AbstractFactory
{ {
public function create(): ProductInterface public function create(): ProductInterface
{ {

+ 0
- 8
Factory/Product/ProductFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Product;

interface ProductFactoryInterface
{

}

+ 6
- 8
Factory/Product/ProductFamilyFactory.php View File

namespace Lc\CaracoleBundle\Factory\Product; namespace Lc\CaracoleBundle\Factory\Product;


use App\Entity\Product\ProductFamily; use App\Entity\Product\ProductFamily;
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
use Lc\CaracoleBundle\Factory\SectionFactoryTrait;
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
use Lc\CaracoleBundle\Model\Product\ProductFamilyInterface; use Lc\CaracoleBundle\Model\Product\ProductFamilyInterface;
use Lc\CaracoleBundle\Model\Section\SectionInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class ProductFamilyFactory extends AbstractFactory implements ProductFamilyFactoryInterface
class ProductFamilyFactory extends AbstractFactory
{ {
use MerchantFactoryTrait;
use SectionFactoryTrait;


public function create(): ProductFamilyInterface
public function create(MerchantInterface $merchant, SectionInterface $section): ProductFamilyInterface
{ {
$productFamily = new ProductFamily(); $productFamily = new ProductFamily();


$productFamily->setMerchant($this->merchant);
$productFamily->setSection($this->section);
$productFamily->setMerchant($merchant);
$productFamily->setSection($section);


return $productFamily; return $productFamily;
} }

+ 0
- 8
Factory/Product/ProductFamilyFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Product;

interface ProductFamilyFactoryInterface
{

}

+ 4
- 5
Factory/Reduction/ReductionCartFactory.php View File

namespace Lc\CaracoleBundle\Factory\Reduction; namespace Lc\CaracoleBundle\Factory\Reduction;


use App\Entity\Reduction\ReductionCart; use App\Entity\Reduction\ReductionCart;
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
use Lc\CaracoleBundle\Model\Reduction\ReductionCartInterface; use Lc\CaracoleBundle\Model\Reduction\ReductionCartInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class ReductionCartFactory extends AbstractFactory implements ReductionCartFactoryInterface
class ReductionCartFactory extends AbstractFactory
{ {
use MerchantFactoryTrait;


public function create(): ReductionCartInterface
public function create(MerchantInterface $merchant): ReductionCartInterface
{ {
$reductionCart = new ReductionCart(); $reductionCart = new ReductionCart();


$reductionCart->setMerchant($this->merchant);
$reductionCart->setMerchant($merchant);


return $reductionCart; return $reductionCart;
} }

+ 0
- 8
Factory/Reduction/ReductionCartFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Reduction;

interface ReductionCartFactoryInterface
{

}

+ 4
- 5
Factory/Reduction/ReductionCatalogFactory.php View File

namespace Lc\CaracoleBundle\Factory\Reduction; namespace Lc\CaracoleBundle\Factory\Reduction;


use App\Entity\Reduction\ReductionCatalog; use App\Entity\Reduction\ReductionCatalog;
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
use Lc\CaracoleBundle\Model\Reduction\ReductionCatalogInterface; use Lc\CaracoleBundle\Model\Reduction\ReductionCatalogInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class ReductionCatalogFactory extends AbstractFactory implements ReductionCatalogFactoryInterface
class ReductionCatalogFactory extends AbstractFactory
{ {
use MerchantFactoryTrait;


public function create(): ReductionCatalogInterface
public function create(MerchantInterface $merchant): ReductionCatalogInterface
{ {
$reductionCatalog = new ReductionCatalog(); $reductionCatalog = new ReductionCatalog();


$reductionCatalog->setMerchant($this->merchant);
$reductionCatalog->setMerchant($merchant);


return $reductionCatalog; return $reductionCatalog;
} }

+ 0
- 8
Factory/Reduction/ReductionCatalogFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Reduction;

interface ReductionCatalogFactoryInterface
{

}

+ 4
- 5
Factory/Reduction/ReductionCreditFactory.php View File

namespace Lc\CaracoleBundle\Factory\Reduction; namespace Lc\CaracoleBundle\Factory\Reduction;


use App\Entity\Reduction\ReductionCredit; use App\Entity\Reduction\ReductionCredit;
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
use Lc\CaracoleBundle\Model\Reduction\ReductionCreditInterface; use Lc\CaracoleBundle\Model\Reduction\ReductionCreditInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class ReductionCreditFactory extends AbstractFactory implements ReductionCreditFactoryInterface
class ReductionCreditFactory extends AbstractFactory
{ {
use MerchantFactoryTrait;


public function create(): ReductionCreditInterface
public function create(MerchantInterface $merchant): ReductionCreditInterface
{ {
$reductionCredit = new ReductionCredit(); $reductionCredit = new ReductionCredit();


$reductionCredit->setMerchant($this->merchant);
$reductionCredit->setMerchant($merchant);


return $reductionCredit; return $reductionCredit;
} }

+ 0
- 8
Factory/Reduction/ReductionCreditFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Reduction;

interface ReductionCreditFactoryInterface
{

}

+ 4
- 4
Factory/Section/OpeningFactory.php View File

namespace Lc\CaracoleBundle\Factory\Section; namespace Lc\CaracoleBundle\Factory\Section;


use App\Entity\Section\Opening; use App\Entity\Section\Opening;
use Lc\CaracoleBundle\Factory\SectionFactoryTrait;
use Lc\CaracoleBundle\Model\Section\SectionInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;
use Lc\SovBundle\Model\User\GroupUserInterface; use Lc\SovBundle\Model\User\GroupUserInterface;


class OpeningFactory extends AbstractFactory implements OpeningFactoryInterface
class OpeningFactory extends AbstractFactory
{ {
use SectionFactoryTrait;


public function create( public function create(
SectionInterface $section,
int $day, int $day,
\DateTime $timeStart = null, \DateTime $timeStart = null,
\DateTime $timeEnd = null, \DateTime $timeEnd = null,
): Opening { ): Opening {
$opening = new Opening(); $opening = new Opening();


$opening->setSection($this->section);
$opening->setSection($section);
$opening->setDay($day); $opening->setDay($day);
$opening->setTimeStart($timeStart); $opening->setTimeStart($timeStart);
$opening->setTimeEnd($timeEnd); $opening->setTimeEnd($timeEnd);

+ 0
- 8
Factory/Section/OpeningFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Section;

interface OpeningFactoryInterface
{

}

+ 4
- 6
Factory/Section/SectionFactory.php View File

namespace Lc\CaracoleBundle\Factory\Section; namespace Lc\CaracoleBundle\Factory\Section;


use App\Entity\Section\Section; use App\Entity\Section\Section;
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
use Lc\CaracoleBundle\Factory\SectionFactoryTrait;
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
use Lc\CaracoleBundle\Model\Section\SectionInterface; use Lc\CaracoleBundle\Model\Section\SectionInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class SectionFactory extends AbstractFactory implements SectionFactoryInterface
class SectionFactory extends AbstractFactory
{ {
use MerchantFactoryTrait;


public function create(): SectionInterface
public function create(MerchantInterface $merchant): SectionInterface
{ {
$section = new Section(); $section = new Section();


$section->setMerchant($this->merchant);
$section->setMerchant($merchant);


return $section; return $section;
} }

+ 0
- 8
Factory/Section/SectionFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\Section;

interface SectionFactoryInterface
{

}

+ 3
- 4
Factory/User/GroupUserFactory.php View File



namespace Lc\CaracoleBundle\Factory\User; namespace Lc\CaracoleBundle\Factory\User;


use App\Entity\User\GroupUser;
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
use Lc\SovBundle\Factory\AbstractFactory;
use Lc\SovBundle\Model\User\GroupUserInterface; use Lc\SovBundle\Model\User\GroupUserInterface;
use Lc\SovBundle\Factory\User\GroupUserFactory as SovGroupUserFactory;


class GroupUserFactory extends AbstractFactory implements GroupUserFactoryInterface
class GroupUserFactory extends SovGroupUserFactory
{ {
use MerchantFactoryTrait; use MerchantFactoryTrait;


public function create(): GroupUserInterface public function create(): GroupUserInterface
{ {
$groupUser = new GroupUser();
$groupUser = parent::create();


$groupUser->setMerchant($this->merchant); $groupUser->setMerchant($this->merchant);



+ 0
- 8
Factory/User/GroupUserFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\User;

interface GroupUserFactoryInterface
{

}

+ 3
- 4
Factory/User/UserMerchantFactory.php View File

namespace Lc\CaracoleBundle\Factory\User; namespace Lc\CaracoleBundle\Factory\User;


use App\Entity\User\UserMerchant; use App\Entity\User\UserMerchant;
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
use Lc\CaracoleBundle\Model\User\UserMerchantInterface; use Lc\CaracoleBundle\Model\User\UserMerchantInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class UserMerchantFactory extends AbstractFactory class UserMerchantFactory extends AbstractFactory
{ {
use MerchantFactoryTrait;


public function create(): UserMerchantInterface
public function create(MerchantInterface $merchant): UserMerchantInterface
{ {
$userMerchant = new UserMerchant(); $userMerchant = new UserMerchant();


$userMerchant->setMerchant($this->merchant);
$userMerchant->setMerchant($merchant);


return $userMerchant; return $userMerchant;
} }

+ 1
- 1
Factory/User/VisitorFactory.php View File

use Lc\CaracoleBundle\Model\User\VisitorInterface; use Lc\CaracoleBundle\Model\User\VisitorInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


class VisitorFactory extends AbstractFactory implements VisitorFactoryInterface
class VisitorFactory extends AbstractFactory
{ {
public function create(): VisitorInterface public function create(): VisitorInterface
{ {

+ 0
- 8
Factory/User/VisitorFactoryInterface.php View File

<?php

namespace Lc\CaracoleBundle\Factory\User;

interface VisitorFactoryInterface
{

}

+ 19
- 1
Model/Newsletter/NewsletterModel.php View File



use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Doctrine\Extension\FilterMerchantInterface; use Lc\CaracoleBundle\Doctrine\Extension\FilterMerchantInterface;
use Lc\CaracoleBundle\Doctrine\Extension\FilterSectionInterface;
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface; use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
use Lc\CaracoleBundle\Model\Section\SectionInterface;
use Lc\SovBundle\Model\Newsletter\NewsletterModel as SovNewsletterModel; use Lc\SovBundle\Model\Newsletter\NewsletterModel as SovNewsletterModel;


/** /**
* @ORM\MappedSuperclass() * @ORM\MappedSuperclass()
*/ */
abstract class NewsletterModel extends SovNewsletterModel implements FilterMerchantInterface
abstract class NewsletterModel extends SovNewsletterModel implements FilterMerchantInterface, FilterSectionInterface
{ {
/** /**
* @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Merchant\MerchantInterface", inversedBy="newsletters") * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Merchant\MerchantInterface", inversedBy="newsletters")
*/ */
protected $merchant; protected $merchant;


/**
* @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Section\SectionInterface", inversedBy="newsletters")
*/
protected $section;


public function getMerchant(): ?MerchantInterface public function getMerchant(): ?MerchantInterface
{ {


return $this; return $this;
} }

public function getSection(): ?SectionInterface
{
return $this->section;
}

public function setSection(?SectionInterface $section): self
{
$this->section = $section;

return $this;
}
} }

+ 3
- 1
Repository/Address/AddressStore.php View File



namespace Lc\CaracoleBundle\Repository\Address; namespace Lc\CaracoleBundle\Repository\Address;


class AddressStore
use Lc\SovBundle\Repository\AbstractStore;

class AddressStore extends AbstractStore
{ {
protected AddressRepositoryQuery $query; protected AddressRepositoryQuery $query;



+ 2
- 1
Repository/Config/TaxRateStore.php View File

namespace Lc\CaracoleBundle\Repository\Config; namespace Lc\CaracoleBundle\Repository\Config;


use Lc\CaracoleBundle\Resolver\MerchantResolver; use Lc\CaracoleBundle\Resolver\MerchantResolver;
use Lc\SovBundle\Repository\AbstractStore;


class TaxRateStore
class TaxRateStore extends AbstractStore
{ {
protected TaxRateRepositoryQuery $query; protected TaxRateRepositoryQuery $query;
protected MerchantResolver $merchantResolver; protected MerchantResolver $merchantResolver;

+ 3
- 1
Repository/Config/UnitStore.php View File



namespace Lc\CaracoleBundle\Repository\Config; namespace Lc\CaracoleBundle\Repository\Config;


class UnitStore
use Lc\SovBundle\Repository\AbstractStore;

class UnitStore extends AbstractStore
{ {
protected UnitRepositoryQuery $query; protected UnitRepositoryQuery $query;



+ 3
- 1
Repository/Credit/CreditHistoryStore.php View File



namespace Lc\CaracoleBundle\Repository\Credit; namespace Lc\CaracoleBundle\Repository\Credit;


class CreditHistoryStore
use Lc\SovBundle\Repository\AbstractStore;

class CreditHistoryStore extends AbstractStore
{ {
protected CreditHistoryRepositoryQuery $query; protected CreditHistoryRepositoryQuery $query;



+ 3
- 1
Repository/File/DocumentStore.php View File



namespace Lc\CaracoleBundle\Repository\File; namespace Lc\CaracoleBundle\Repository\File;


class DocumentStore
use Lc\SovBundle\Repository\AbstractStore;

class DocumentStore extends AbstractStore
{ {
protected DocumentRepositoryQuery $query; protected DocumentRepositoryQuery $query;



+ 3
- 1
Repository/Merchant/MerchantStore.php View File



namespace Lc\CaracoleBundle\Repository\Merchant; namespace Lc\CaracoleBundle\Repository\Merchant;


class MerchantStore
use Lc\SovBundle\Repository\AbstractStore;

class MerchantStore extends AbstractStore
{ {
protected MerchantRepositoryQuery $query; protected MerchantRepositoryQuery $query;



+ 3
- 1
Repository/Order/OrderPaymentStore.php View File



namespace Lc\CaracoleBundle\Repository\Order; namespace Lc\CaracoleBundle\Repository\Order;


class OrderPaymentStore
use Lc\SovBundle\Repository\AbstractStore;

class OrderPaymentStore extends AbstractStore
{ {
protected OrderPaymentRepositoryQuery $query; protected OrderPaymentRepositoryQuery $query;



+ 3
- 1
Repository/Order/OrderProductReductionCatalogStore.php View File



namespace Lc\CaracoleBundle\Repository\Order; namespace Lc\CaracoleBundle\Repository\Order;


class OrderProductReductionCatalogStore
use Lc\SovBundle\Repository\AbstractStore;

class OrderProductReductionCatalogStore extends AbstractStore
{ {
protected OrderProductReductionCatalogRepositoryQuery $query; protected OrderProductReductionCatalogRepositoryQuery $query;



+ 3
- 1
Repository/Order/OrderProductRefundStore.php View File



namespace Lc\CaracoleBundle\Repository\Order; namespace Lc\CaracoleBundle\Repository\Order;


class OrderProductRefundStore
use Lc\SovBundle\Repository\AbstractStore;

class OrderProductRefundStore extends AbstractStore
{ {
protected OrderProductRefundRepositoryQuery $query; protected OrderProductRefundRepositoryQuery $query;



+ 3
- 1
Repository/Order/OrderProductStore.php View File



namespace Lc\CaracoleBundle\Repository\Order; namespace Lc\CaracoleBundle\Repository\Order;


class OrderProductStore
use Lc\SovBundle\Repository\AbstractStore;

class OrderProductStore extends AbstractStore
{ {
protected OrderProductRepositoryQuery $query; protected OrderProductRepositoryQuery $query;



+ 3
- 1
Repository/Order/OrderReductionCartStore.php View File



namespace Lc\CaracoleBundle\Repository\Order; namespace Lc\CaracoleBundle\Repository\Order;


class OrderReductionCartStore
use Lc\SovBundle\Repository\AbstractStore;

class OrderReductionCartStore extends AbstractStore
{ {
protected OrderReductionCartRepositoryQuery $query; protected OrderReductionCartRepositoryQuery $query;



+ 3
- 1
Repository/Order/OrderReductionCreditStore.php View File



namespace Lc\CaracoleBundle\Repository\Order; namespace Lc\CaracoleBundle\Repository\Order;


class OrderReductionCreditStore
use Lc\SovBundle\Repository\AbstractStore;

class OrderReductionCreditStore extends AbstractStore
{ {
protected OrderReductionCreditRepositoryQuery $query; protected OrderReductionCreditRepositoryQuery $query;



+ 3
- 1
Repository/Order/OrderRefundStore.php View File



namespace Lc\CaracoleBundle\Repository\Order; namespace Lc\CaracoleBundle\Repository\Order;


class OrderRefundStore
use Lc\SovBundle\Repository\AbstractStore;

class OrderRefundStore extends AbstractStore
{ {
protected OrderRefundRepositoryQuery $query; protected OrderRefundRepositoryQuery $query;



+ 3
- 1
Repository/Order/OrderShopStore.php View File



namespace Lc\CaracoleBundle\Repository\Order; namespace Lc\CaracoleBundle\Repository\Order;


class OrderShopStore
use Lc\SovBundle\Repository\AbstractStore;

class OrderShopStore extends AbstractStore
{ {
protected OrderShopRepositoryQuery $query; protected OrderShopRepositoryQuery $query;



+ 3
- 1
Repository/Order/OrderStatusHistoryStore.php View File



namespace Lc\CaracoleBundle\Repository\Order; namespace Lc\CaracoleBundle\Repository\Order;


class OrderStatusHistoryStore
use Lc\SovBundle\Repository\AbstractStore;

class OrderStatusHistoryStore extends AbstractStore
{ {
protected OrderStatusHistoryRepositoryQuery $query; protected OrderStatusHistoryRepositoryQuery $query;



+ 3
- 1
Repository/Order/OrderStatusStore.php View File



namespace Lc\CaracoleBundle\Repository\Order; namespace Lc\CaracoleBundle\Repository\Order;


class OrderStatusStore
use Lc\SovBundle\Repository\AbstractStore;

class OrderStatusStore extends AbstractStore
{ {
protected OrderStatusRepositoryQuery $query; protected OrderStatusRepositoryQuery $query;



+ 1
- 1
Repository/PointSale/PointSaleRepositoryQuery.php View File

public function filterByMerchant(MerchantInterface $merchant) public function filterByMerchant(MerchantInterface $merchant)
{ {
return $this return $this
->andWhere(':merchant MEMBER OF .merchant')
->andWhere(':merchant MEMBER OF .merchants')
->setParameter(':merchant', $merchant); ->setParameter(':merchant', $merchant);
} }
} }

+ 3
- 1
Repository/PointSale/PointSaleStore.php View File



namespace Lc\CaracoleBundle\Repository\PointSale; namespace Lc\CaracoleBundle\Repository\PointSale;


class PointSaleStore
use Lc\SovBundle\Repository\AbstractStore;

class PointSaleStore extends AbstractStore
{ {
protected PointSaleRepositoryQuery $query; protected PointSaleRepositoryQuery $query;



+ 3
- 1
Repository/Product/ProductCategoryStore.php View File



namespace Lc\CaracoleBundle\Repository\Product; namespace Lc\CaracoleBundle\Repository\Product;


class ProductCategoryStore
use Lc\SovBundle\Repository\AbstractStore;

class ProductCategoryStore extends AbstractStore
{ {
protected ProductCategoryRepositoryQuery $query; protected ProductCategoryRepositoryQuery $query;



+ 3
- 1
Repository/Product/ProductFamilyStore.php View File



namespace Lc\CaracoleBundle\Repository\Product; namespace Lc\CaracoleBundle\Repository\Product;


class ProductFamilyStore
use Lc\SovBundle\Repository\AbstractStore;

class ProductFamilyStore extends AbstractStore
{ {
protected ProductFamilyRepositoryQuery $query; protected ProductFamilyRepositoryQuery $query;



+ 3
- 1
Repository/Product/ProductStore.php View File



namespace Lc\CaracoleBundle\Repository\Product; namespace Lc\CaracoleBundle\Repository\Product;


class ProductStore
use Lc\SovBundle\Repository\AbstractStore;

class ProductStore extends AbstractStore
{ {
protected ProductRepositoryQuery $query; protected ProductRepositoryQuery $query;



+ 3
- 1
Repository/Reduction/ReductionCartStore.php View File



namespace Lc\CaracoleBundle\Repository\Reduction; namespace Lc\CaracoleBundle\Repository\Reduction;


class ReductionCartStore
use Lc\SovBundle\Repository\AbstractStore;

class ReductionCartStore extends AbstractStore
{ {
protected ReductionCartRepositoryQuery $query; protected ReductionCartRepositoryQuery $query;



+ 3
- 1
Repository/Reduction/ReductionCatalogStore.php View File



namespace Lc\CaracoleBundle\Repository\Reduction; namespace Lc\CaracoleBundle\Repository\Reduction;


class ReductionCatalogStore
use Lc\SovBundle\Repository\AbstractStore;

class ReductionCatalogStore extends AbstractStore
{ {
protected ReductionCatalogRepositoryQuery $query; protected ReductionCatalogRepositoryQuery $query;



+ 3
- 1
Repository/Reduction/ReductionCreditStore.php View File



namespace Lc\CaracoleBundle\Repository\Reduction; namespace Lc\CaracoleBundle\Repository\Reduction;


class ReductionCreditStore
use Lc\SovBundle\Repository\AbstractStore;

class ReductionCreditStore extends AbstractStore
{ {
protected ReductionCreditRepositoryQuery $query; protected ReductionCreditRepositoryQuery $query;



+ 3
- 1
Repository/Section/OpeningStore.php View File



namespace Lc\CaracoleBundle\Repository\Section; namespace Lc\CaracoleBundle\Repository\Section;


class OpeningStore
use Lc\SovBundle\Repository\AbstractStore;

class OpeningStore extends AbstractStore
{ {
protected OpeningRepositoryQuery $query; protected OpeningRepositoryQuery $query;



+ 3
- 1
Repository/Section/SectionStore.php View File



namespace Lc\CaracoleBundle\Repository\Section; namespace Lc\CaracoleBundle\Repository\Section;


class SectionStore
use Lc\SovBundle\Repository\AbstractStore;

class SectionStore extends AbstractStore
{ {
protected SectionRepositoryQuery $query; protected SectionRepositoryQuery $query;



+ 3
- 1
Repository/Setting/MerchantSettingStore.php View File



namespace Lc\CaracoleBundle\Repository\Setting; namespace Lc\CaracoleBundle\Repository\Setting;


class MerchantSettingStore
use Lc\SovBundle\Repository\AbstractStore;

class MerchantSettingStore extends AbstractStore
{ {
protected MerchantSettingRepositoryQuery $query; protected MerchantSettingRepositoryQuery $query;



+ 3
- 1
Repository/Setting/SectionSettingStore.php View File



namespace Lc\CaracoleBundle\Repository\Setting; namespace Lc\CaracoleBundle\Repository\Setting;


class SectionSettingStore
use Lc\SovBundle\Repository\AbstractStore;

class SectionSettingStore extends AbstractStore
{ {
protected SectionSettingRepositoryQuery $query; protected SectionSettingRepositoryQuery $query;



+ 3
- 1
Repository/User/GroupUserStore.php View File



namespace Lc\CaracoleBundle\Repository\User; namespace Lc\CaracoleBundle\Repository\User;


class GroupUserStore
use Lc\SovBundle\Repository\AbstractStore;

class GroupUserStore extends AbstractStore
{ {
protected GroupUserRepositoryQuery $query; protected GroupUserRepositoryQuery $query;



+ 3
- 1
Repository/User/UserMerchantStore.php View File



namespace Lc\CaracoleBundle\Repository\User; namespace Lc\CaracoleBundle\Repository\User;


class UserMerchantStore
use Lc\SovBundle\Repository\AbstractStore;

class UserMerchantStore extends AbstractStore
{ {
protected UserMerchantRepositoryQuery $query; protected UserMerchantRepositoryQuery $query;



+ 3
- 1
Repository/User/VisitorStore.php View File



namespace Lc\CaracoleBundle\Repository\User; namespace Lc\CaracoleBundle\Repository\User;


class VisitorStore
use Lc\SovBundle\Repository\AbstractStore;

class VisitorStore extends AbstractStore
{ {
protected VisitorRepositoryQuery $query; protected VisitorRepositoryQuery $query;



Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save