@@ -7,23 +7,29 @@ use EasyCorp\Bundle\EasyAdminBundle\Field\IntegerField; | |||
use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField; | |||
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; | |||
use Lc\CaracoleBundle\Controller\AdminControllerTrait; | |||
use Lc\CaracoleBundle\Factory\Config\TaxRateFactory; | |||
use Lc\SovBundle\Controller\AbstractAdminController; | |||
abstract class TaxRateAdminController extends AbstractAdminController | |||
{ | |||
use AdminControllerTrait; | |||
public function configureCrud(Crud $crud): Crud | |||
{ | |||
return $crud->setSearchFields(['id', 'title', 'value']); | |||
} | |||
public function configureFields(string $pageName): iterable | |||
{ | |||
return [ | |||
IntegerField::new('id', 'ID')->hideOnForm(), | |||
TextField::new('title'), | |||
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(); | |||
} | |||
} |
@@ -8,6 +8,7 @@ use EasyCorp\Bundle\EasyAdminBundle\Field\IntegerField; | |||
use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField; | |||
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; | |||
use Lc\CaracoleBundle\Controller\AdminControllerTrait; | |||
use Lc\CaracoleBundle\Factory\Config\UnitFactory; | |||
use Lc\SovBundle\Controller\AbstractAdminController; | |||
abstract class UnitAdminController extends AbstractAdminController | |||
@@ -17,7 +18,6 @@ abstract class UnitAdminController extends AbstractAdminController | |||
public function configureFields(string $pageName): iterable | |||
{ | |||
return [ | |||
IntegerField::new('id', 'ID')->hideOnForm(), | |||
TextField::new('unit'), | |||
TextField::new('wording'), | |||
TextField::new('wordingUnit'), | |||
@@ -26,4 +26,10 @@ abstract class UnitAdminController extends AbstractAdminController | |||
AssociationField::new('unitReference'), | |||
]; | |||
} | |||
public function createEntity(string $entityFqcn) | |||
{ | |||
$factory = new UnitFactory(); | |||
return $factory->create(); | |||
} | |||
} |
@@ -20,6 +20,7 @@ use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; | |||
use EasyCorp\Bundle\EasyAdminBundle\Provider\AdminContextProvider; | |||
use EasyCorp\Bundle\EasyAdminBundle\Router\AdminUrlGenerator; | |||
use Lc\CaracoleBundle\Controller\AdminControllerTrait; | |||
use Lc\CaracoleBundle\Factory\Credit\CreditHistoryFactory; | |||
use Lc\CaracoleBundle\Model\Credit\CreditHistoryInterface; | |||
use Lc\CaracoleBundle\Model\Credit\CreditHistoryModel; | |||
use Lc\CaracoleBundle\Model\User\UserMerchantInterface; | |||
@@ -49,6 +50,12 @@ abstract class CreditHistoryAdminController extends AbstractAdminController | |||
} | |||
} | |||
public function createEntity(string $entityFqcn) | |||
{ | |||
$factory = new CreditHistoryFactory(); | |||
return $factory->create(); | |||
} | |||
public function persistEntity(EntityManagerInterface $entityManager, $entityInstance): void | |||
{ | |||
$entityInstance->setUserMerchant($this->getUserMerchant()); |
@@ -7,6 +7,7 @@ use EasyCorp\Bundle\EasyAdminBundle\Field\FormField; | |||
use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField; | |||
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; | |||
use Lc\CaracoleBundle\Controller\AdminControllerTrait; | |||
use Lc\CaracoleBundle\Factory\Merchant\MerchantFactory; | |||
use Lc\CaracoleBundle\Field\Address\AddressField; | |||
use Lc\SovBundle\Controller\AbstractAdminController; | |||
use Lc\SovBundle\Field\CKEditorField; | |||
@@ -42,4 +43,10 @@ abstract class MerchantAdminController extends AbstractAdminController | |||
); | |||
} | |||
public function createEntity(string $entityFqcn) | |||
{ | |||
$factory = new MerchantFactory(); | |||
return $factory->create(); | |||
} | |||
} |
@@ -3,11 +3,17 @@ | |||
namespace Lc\CaracoleBundle\Controller\Newsletter; | |||
use Lc\CaracoleBundle\Controller\AdminControllerTrait; | |||
use Lc\CaracoleBundle\Factory\Newsletter\NewsletterFactory; | |||
use Lc\SovBundle\Controller\Newsletter\NewsletterAdminController as SovNewsletterAdminController; | |||
abstract class NewsletterAdminController extends SovNewsletterAdminController | |||
{ | |||
use AdminControllerTrait; | |||
public function createEntity(string $entityFqcn) | |||
{ | |||
$factory = new NewsletterFactory(); | |||
$factory->setMerchant($this->get('merchant_resolver')->getCurrent()); | |||
return $factory->create(); | |||
} | |||
} |
@@ -6,8 +6,10 @@ use EasyCorp\Bundle\EasyAdminBundle\Field\FormField; | |||
use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField; | |||
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; | |||
use Lc\CaracoleBundle\Controller\AdminControllerTrait; | |||
use Lc\CaracoleBundle\Factory\PointSale\PointSaleFactory; | |||
use Lc\CaracoleBundle\Field\Address\AddressField; | |||
use Lc\SovBundle\Controller\AbstractAdminController; | |||
use Lc\SovBundle\Field\BooleanField; | |||
use Lc\SovBundle\Field\StatusField; | |||
abstract class PointSaleAdminController extends AbstractAdminController | |||
@@ -16,7 +18,6 @@ abstract class PointSaleAdminController extends AbstractAdminController | |||
public function configureFields(string $pageName): iterable | |||
{ | |||
$panel = parent::configureFields($pageName); | |||
return array_merge( | |||
[ | |||
@@ -25,13 +26,26 @@ abstract class PointSaleAdminController extends AbstractAdminController | |||
NumberField::new('orderAmountMin') | |||
->setCustomOption('appendHtml','€') | |||
->hideOnIndex(), | |||
StatusField::new('status'), | |||
NumberField::new('deliveryPrice') | |||
->setCustomOption('appendHtml','€') | |||
->hideOnIndex(), | |||
BooleanField::new('isPublic'), | |||
BooleanField::new('isDepository'), | |||
StatusField::new('status') | |||
->hideOnIndex(), | |||
FormField::addPanel('address'), | |||
AddressField::new('address') | |||
->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,6 +3,7 @@ | |||
namespace Lc\CaracoleBundle\Controller\Reminder; | |||
use Lc\CaracoleBundle\Controller\AdminControllerTrait; | |||
use Lc\CaracoleBundle\Factory\Reminder\ReminderFactory; | |||
use Lc\SovBundle\Controller\Reminder\ReminderAdminController as SovReminderAdminController; | |||
class ReminderAdminController extends SovReminderAdminController | |||
@@ -11,7 +12,8 @@ class ReminderAdminController extends SovReminderAdminController | |||
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()) | |||
->setSection($this->get('section_resolver')->getCurrent()) | |||
->create($crudAction, $crudControllerFqcn, $entityId); |
@@ -7,6 +7,7 @@ use EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField; | |||
use EasyCorp\Bundle\EasyAdminBundle\Field\ChoiceField; | |||
use EasyCorp\Bundle\EasyAdminBundle\Field\TimeField; | |||
use Lc\CaracoleBundle\Controller\AdminControllerTrait; | |||
use Lc\CaracoleBundle\Factory\Section\OpeningFactory; | |||
use Lc\SovBundle\Controller\AbstractAdminController; | |||
abstract class OpeningAdminController extends AbstractAdminController | |||
@@ -53,4 +54,11 @@ abstract class OpeningAdminController extends AbstractAdminController | |||
return $crud; | |||
} | |||
public function createEntity(string $entityFqcn) | |||
{ | |||
$factory = new OpeningFactory(); | |||
$currentSection = $this->get('section_resolver')->getCurrent(); | |||
return $factory->create($currentSection); | |||
} | |||
} |
@@ -7,6 +7,7 @@ use EasyCorp\Bundle\EasyAdminBundle\Field\FormField; | |||
use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField; | |||
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; | |||
use Lc\CaracoleBundle\Controller\AdminControllerTrait; | |||
use Lc\CaracoleBundle\Factory\Section\SectionFactory; | |||
use Lc\CaracoleBundle\Form\Section\OpeningsFormType; | |||
use Lc\CaracoleBundle\Model\Section\SectionModel; | |||
use Lc\SovBundle\Controller\AbstractAdminController; | |||
@@ -22,14 +23,13 @@ abstract class SectionAdminController extends AbstractAdminController | |||
public function configureFields(string $pageName): iterable | |||
{ | |||
$panel = parent::configureFields($pageName); | |||
return array_merge( | |||
[ | |||
FormField::addPanel('general'), | |||
TextField::new('title'), | |||
ChoiceField::new('cycle') | |||
->setRequired(true) | |||
->hideOnIndex() | |||
->setChoices( | |||
[ | |||
'Jour' => SectionModel::CYCLE_DAY, | |||
@@ -49,8 +49,16 @@ abstract class SectionAdminController extends AbstractAdminController | |||
BooleanField::new('isDefault', 'Section par défaut'), | |||
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); | |||
} | |||
} |
@@ -3,11 +3,18 @@ | |||
namespace Lc\CaracoleBundle\Controller\Site; | |||
use Lc\CaracoleBundle\Controller\AdminControllerTrait; | |||
use Lc\CaracoleBundle\Factory\Site\NewsFactory; | |||
use Lc\SovBundle\Controller\Site\NewsAdminController as SovNewsAdminController; | |||
abstract class NewsAdminController extends SovNewsAdminController | |||
{ | |||
use AdminControllerTrait; | |||
public function createEntity(string $entityFqcn) | |||
{ | |||
$factory = new NewsFactory(); | |||
$currentMerchant = $this->get('merchant_resolver')->getCurrent(); | |||
$factory->setMerchant($currentMerchant); | |||
return $factory->create(); | |||
} | |||
} |
@@ -3,11 +3,20 @@ | |||
namespace Lc\CaracoleBundle\Controller\Site; | |||
use Lc\CaracoleBundle\Controller\AdminControllerTrait; | |||
use Lc\CaracoleBundle\Factory\Site\PageFactory; | |||
use Lc\SovBundle\Controller\Site\PageAdminController as SovPageAdminController; | |||
abstract class PageAdminController extends SovPageAdminController | |||
{ | |||
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(); | |||
} | |||
} |
@@ -3,11 +3,18 @@ | |||
namespace Lc\CaracoleBundle\Controller\User; | |||
use Lc\CaracoleBundle\Controller\AdminControllerTrait; | |||
use Lc\CaracoleBundle\Factory\User\GroupUserFactory; | |||
use Lc\SovBundle\Controller\User\GroupUserAdminController as SovGroupUserAdminController; | |||
abstract class GroupUserAdminController extends SovGroupUserAdminController | |||
{ | |||
use AdminControllerTrait; | |||
public function createEntity(string $entityFqcn) | |||
{ | |||
$factory = new GroupUserFactory(); | |||
$currentMerchant = $this->get('merchant_resolver')->getCurrent(); | |||
$factory->setMerchant($currentMerchant); | |||
return $factory->create(); | |||
} | |||
} |
@@ -3,19 +3,18 @@ | |||
namespace Lc\CaracoleBundle\Factory\Address; | |||
use App\Entity\Address\Address; | |||
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | |||
use Lc\CaracoleBundle\Model\Address\AddressInterface; | |||
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface; | |||
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->setMerchant($this->merchant); | |||
$address->setMerchant($merchant); | |||
return $address; | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Address; | |||
interface AddressFactoryInterface | |||
{ | |||
} |
@@ -6,7 +6,7 @@ use App\Entity\Config\TaxRate; | |||
use Lc\CaracoleBundle\Model\Config\TaxRateInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class TaxRateFactory extends AbstractFactory implements TaxRateFactoryInterface | |||
class TaxRateFactory extends AbstractFactory | |||
{ | |||
public function create(): TaxRateInterface | |||
{ |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Config; | |||
interface TaxRateFactoryInterface | |||
{ | |||
} |
@@ -6,7 +6,7 @@ use App\Entity\Config\Unit; | |||
use Lc\CaracoleBundle\Model\Config\UnitInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class UnitFactory extends AbstractFactory implements UnitFactoryInterface | |||
class UnitFactory extends AbstractFactory | |||
{ | |||
public function create(): UnitInterface | |||
{ |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Config; | |||
interface UnitFactoryInterface | |||
{ | |||
} |
@@ -3,11 +3,10 @@ | |||
namespace Lc\CaracoleBundle\Factory\Credit; | |||
use App\Entity\Credit\CreditHistory; | |||
use Lc\CaracoleBundle\Factory\CreditHistory\CreditHistoryFactoryInterface; | |||
use Lc\CaracoleBundle\Model\Credit\CreditHistoryInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class CreditHistoryFactory extends AbstractFactory implements CreditHistoryFactoryInterface | |||
class CreditHistoryFactory extends AbstractFactory | |||
{ | |||
public function create(): CreditHistoryInterface | |||
{ |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Credit; | |||
interface CreditHistoryFactoryInterface | |||
{ | |||
} |
@@ -7,7 +7,7 @@ use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | |||
use Lc\CaracoleBundle\Model\File\DocumentInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class DocumentFactory extends AbstractFactory implements DocumentFactoryInterface | |||
class DocumentFactory extends AbstractFactory | |||
{ | |||
use MerchantFactoryTrait; | |||
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\File; | |||
interface DocumentFactoryInterface | |||
{ | |||
} |
@@ -6,7 +6,7 @@ use App\Entity\Merchant\Merchant; | |||
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class MerchantFactory extends AbstractFactory implements MerchantFactoryInterface | |||
class MerchantFactory extends AbstractFactory | |||
{ | |||
public function create(): MerchantInterface | |||
{ |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Merchant; | |||
interface MerchantFactoryInterface | |||
{ | |||
} |
@@ -2,7 +2,6 @@ | |||
namespace Lc\CaracoleBundle\Factory\Newsletter; | |||
use App\Entity\Newsletter\Newsletter; | |||
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | |||
use Lc\SovBundle\Model\Newsletter\NewsletterInterface; | |||
use Lc\SovBundle\Factory\Newsletter\NewsletterFactory as SovNewsletterFactory; |
@@ -6,7 +6,7 @@ use App\Entity\Order\OrderPayment; | |||
use Lc\CaracoleBundle\Model\Order\OrderPaymentInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderPaymentFactory extends AbstractFactory implements OrderPaymentFactoryInterface | |||
class OrderPaymentFactory extends AbstractFactory | |||
{ | |||
public function create(): OrderPaymentInterface | |||
{ |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderPaymentFactoryInterface | |||
{ | |||
} |
@@ -6,7 +6,7 @@ use App\Entity\Order\OrderProduct; | |||
use Lc\CaracoleBundle\Model\Order\OrderProductInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderProductFactory extends AbstractFactory implements OrderProductFactoryInterface | |||
class OrderProductFactory extends AbstractFactory | |||
{ | |||
public function create(): OrderProductInterface | |||
{ |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderProductFactoryInterface | |||
{ | |||
} |
@@ -6,7 +6,7 @@ use App\Entity\Order\OrderProductReductionCatalog; | |||
use Lc\CaracoleBundle\Model\Order\OrderProductReductionCatalogInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderProductReductionCatalogFactory extends AbstractFactory implements OrderProductReductionCatalogFactoryInterface | |||
class OrderProductReductionCatalogFactory extends AbstractFactory | |||
{ | |||
public function create(): OrderProductReductionCatalogInterface | |||
{ |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderProductReductionCatalogFactoryInterface | |||
{ | |||
} |
@@ -6,7 +6,7 @@ use App\Entity\Order\OrderProductRefund; | |||
use Lc\CaracoleBundle\Model\Order\OrderProductRefundInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderProductRefundFactory extends AbstractFactory implements OrderProductRefundFactoryInterface | |||
class OrderProductRefundFactory extends AbstractFactory | |||
{ | |||
public function create(): OrderProductRefundInterface | |||
{ |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderProductRefundFactoryInterface | |||
{ | |||
} |
@@ -6,7 +6,7 @@ use App\Entity\Order\OrderReductionCart; | |||
use Lc\CaracoleBundle\Model\Order\OrderReductionCartInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderReductionCartFactory extends AbstractFactory implements OrderReductionCartFactoryInterface | |||
class OrderReductionCartFactory extends AbstractFactory | |||
{ | |||
public function create(): OrderReductionCartInterface | |||
{ |
@@ -1,7 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderReductionCartFactoryInterface{ | |||
} |
@@ -6,7 +6,7 @@ use App\Entity\Order\OrderReductionCredit; | |||
use Lc\CaracoleBundle\Model\Order\OrderReductionCreditInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderReductionCreditFactory extends AbstractFactory implements OrderReductionCreditFactoryInterface | |||
class OrderReductionCreditFactory extends AbstractFactory | |||
{ | |||
public function create(): OrderReductionCreditInterface | |||
{ |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderReductionCreditFactoryInterface | |||
{ | |||
} |
@@ -6,7 +6,7 @@ use App\Entity\Order\OrderRefund; | |||
use Lc\CaracoleBundle\Model\Order\OrderRefundInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderRefundFactory extends AbstractFactory implements OrderRefundFactoryInterface | |||
class OrderRefundFactory extends AbstractFactory | |||
{ | |||
public function create(): OrderRefundInterface | |||
{ |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderRefundFactoryInterface | |||
{ | |||
} |
@@ -5,20 +5,20 @@ namespace Lc\CaracoleBundle\Factory\Order; | |||
use App\Entity\Order\OrderShop; | |||
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | |||
use Lc\CaracoleBundle\Factory\SectionFactoryTrait; | |||
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface; | |||
use Lc\CaracoleBundle\Model\Order\OrderShopInterface; | |||
use Lc\CaracoleBundle\Model\Section\SectionInterface; | |||
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->setMerchant($this->merchant); | |||
$orderShop->setSection($this->section); | |||
$orderShop->setMerchant($merchant); | |||
$orderShop->setSection($section); | |||
return $orderShop; | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderShopFactoryInterface | |||
{ | |||
} |
@@ -6,7 +6,7 @@ use App\Entity\Order\OrderStatus; | |||
use Lc\CaracoleBundle\Model\Order\OrderStatusInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderStatusFactory extends AbstractFactory implements OrderStatusFactoryInterface | |||
class OrderStatusFactory extends AbstractFactory | |||
{ | |||
public function create(): OrderStatusInterface | |||
{ |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderStatusFactoryInterface | |||
{ | |||
} |
@@ -6,7 +6,7 @@ use App\Entity\Order\OrderStatusHistory; | |||
use Lc\CaracoleBundle\Model\Order\OrderStatusHistoryInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class OrderStatusHistoryFactory extends AbstractFactory implements OrderStatusHistoryFactoryInterface | |||
class OrderStatusHistoryFactory extends AbstractFactory | |||
{ | |||
public function create(): OrderStatusHistoryInterface | |||
{ |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Order; | |||
interface OrderStatusHistoryFactoryInterface | |||
{ | |||
} |
@@ -3,19 +3,18 @@ | |||
namespace Lc\CaracoleBundle\Factory\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\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->addMerchant($this->merchant); | |||
$pointSale->addMerchant($merchant); | |||
return $pointSale; | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\PointSale; | |||
interface PointSaleFactoryInterface | |||
{ | |||
} |
@@ -3,22 +3,20 @@ | |||
namespace Lc\CaracoleBundle\Factory\Product; | |||
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\Section\SectionInterface; | |||
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->setMerchant($this->merchant); | |||
$productCategory->setSection($this->section); | |||
$productCategory->setMerchant($merchant); | |||
$productCategory->setSection($section); | |||
return $productCategory; | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Product; | |||
interface ProductCategoryFactoryInterface | |||
{ | |||
} |
@@ -6,7 +6,7 @@ use App\Entity\Product\Product; | |||
use Lc\CaracoleBundle\Model\Product\ProductInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class ProductFactory extends AbstractFactory implements ProductFactoryInterface | |||
class ProductFactory extends AbstractFactory | |||
{ | |||
public function create(): ProductInterface | |||
{ |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Product; | |||
interface ProductFactoryInterface | |||
{ | |||
} |
@@ -3,22 +3,20 @@ | |||
namespace Lc\CaracoleBundle\Factory\Product; | |||
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\Section\SectionInterface; | |||
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->setMerchant($this->merchant); | |||
$productFamily->setSection($this->section); | |||
$productFamily->setMerchant($merchant); | |||
$productFamily->setSection($section); | |||
return $productFamily; | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Product; | |||
interface ProductFamilyFactoryInterface | |||
{ | |||
} |
@@ -3,19 +3,18 @@ | |||
namespace Lc\CaracoleBundle\Factory\Reduction; | |||
use App\Entity\Reduction\ReductionCart; | |||
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | |||
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface; | |||
use Lc\CaracoleBundle\Model\Reduction\ReductionCartInterface; | |||
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->setMerchant($this->merchant); | |||
$reductionCart->setMerchant($merchant); | |||
return $reductionCart; | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Reduction; | |||
interface ReductionCartFactoryInterface | |||
{ | |||
} |
@@ -3,19 +3,18 @@ | |||
namespace Lc\CaracoleBundle\Factory\Reduction; | |||
use App\Entity\Reduction\ReductionCatalog; | |||
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | |||
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface; | |||
use Lc\CaracoleBundle\Model\Reduction\ReductionCatalogInterface; | |||
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->setMerchant($this->merchant); | |||
$reductionCatalog->setMerchant($merchant); | |||
return $reductionCatalog; | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Reduction; | |||
interface ReductionCatalogFactoryInterface | |||
{ | |||
} |
@@ -3,19 +3,18 @@ | |||
namespace Lc\CaracoleBundle\Factory\Reduction; | |||
use App\Entity\Reduction\ReductionCredit; | |||
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | |||
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface; | |||
use Lc\CaracoleBundle\Model\Reduction\ReductionCreditInterface; | |||
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->setMerchant($this->merchant); | |||
$reductionCredit->setMerchant($merchant); | |||
return $reductionCredit; | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Reduction; | |||
interface ReductionCreditFactoryInterface | |||
{ | |||
} |
@@ -3,15 +3,15 @@ | |||
namespace Lc\CaracoleBundle\Factory\Section; | |||
use App\Entity\Section\Opening; | |||
use Lc\CaracoleBundle\Factory\SectionFactoryTrait; | |||
use Lc\CaracoleBundle\Model\Section\SectionInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
use Lc\SovBundle\Model\User\GroupUserInterface; | |||
class OpeningFactory extends AbstractFactory implements OpeningFactoryInterface | |||
class OpeningFactory extends AbstractFactory | |||
{ | |||
use SectionFactoryTrait; | |||
public function create( | |||
SectionInterface $section, | |||
int $day, | |||
\DateTime $timeStart = null, | |||
\DateTime $timeEnd = null, | |||
@@ -19,7 +19,7 @@ class OpeningFactory extends AbstractFactory implements OpeningFactoryInterface | |||
): Opening { | |||
$opening = new Opening(); | |||
$opening->setSection($this->section); | |||
$opening->setSection($section); | |||
$opening->setDay($day); | |||
$opening->setTimeStart($timeStart); | |||
$opening->setTimeEnd($timeEnd); |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Section; | |||
interface OpeningFactoryInterface | |||
{ | |||
} |
@@ -3,20 +3,18 @@ | |||
namespace Lc\CaracoleBundle\Factory\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\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->setMerchant($this->merchant); | |||
$section->setMerchant($merchant); | |||
return $section; | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\Section; | |||
interface SectionFactoryInterface | |||
{ | |||
} |
@@ -2,18 +2,17 @@ | |||
namespace Lc\CaracoleBundle\Factory\User; | |||
use App\Entity\User\GroupUser; | |||
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
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; | |||
public function create(): GroupUserInterface | |||
{ | |||
$groupUser = new GroupUser(); | |||
$groupUser = parent::create(); | |||
$groupUser->setMerchant($this->merchant); | |||
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\User; | |||
interface GroupUserFactoryInterface | |||
{ | |||
} |
@@ -3,19 +3,18 @@ | |||
namespace Lc\CaracoleBundle\Factory\User; | |||
use App\Entity\User\UserMerchant; | |||
use Lc\CaracoleBundle\Factory\MerchantFactoryTrait; | |||
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface; | |||
use Lc\CaracoleBundle\Model\User\UserMerchantInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class UserMerchantFactory extends AbstractFactory | |||
{ | |||
use MerchantFactoryTrait; | |||
public function create(): UserMerchantInterface | |||
public function create(MerchantInterface $merchant): UserMerchantInterface | |||
{ | |||
$userMerchant = new UserMerchant(); | |||
$userMerchant->setMerchant($this->merchant); | |||
$userMerchant->setMerchant($merchant); | |||
return $userMerchant; | |||
} |
@@ -6,7 +6,7 @@ use App\Entity\User\Visitor; | |||
use Lc\CaracoleBundle\Model\User\VisitorInterface; | |||
use Lc\SovBundle\Factory\AbstractFactory; | |||
class VisitorFactory extends AbstractFactory implements VisitorFactoryInterface | |||
class VisitorFactory extends AbstractFactory | |||
{ | |||
public function create(): VisitorInterface | |||
{ |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Factory\User; | |||
interface VisitorFactoryInterface | |||
{ | |||
} |
@@ -4,19 +4,25 @@ namespace Lc\CaracoleBundle\Model\Newsletter; | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Lc\CaracoleBundle\Doctrine\Extension\FilterMerchantInterface; | |||
use Lc\CaracoleBundle\Doctrine\Extension\FilterSectionInterface; | |||
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface; | |||
use Lc\CaracoleBundle\Model\Section\SectionInterface; | |||
use Lc\SovBundle\Model\Newsletter\NewsletterModel as SovNewsletterModel; | |||
/** | |||
* @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") | |||
*/ | |||
protected $merchant; | |||
/** | |||
* @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Section\SectionInterface", inversedBy="newsletters") | |||
*/ | |||
protected $section; | |||
public function getMerchant(): ?MerchantInterface | |||
{ | |||
@@ -29,4 +35,16 @@ abstract class NewsletterModel extends SovNewsletterModel implements FilterMerch | |||
return $this; | |||
} | |||
public function getSection(): ?SectionInterface | |||
{ | |||
return $this->section; | |||
} | |||
public function setSection(?SectionInterface $section): self | |||
{ | |||
$this->section = $section; | |||
return $this; | |||
} | |||
} |
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Address; | |||
class AddressStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class AddressStore extends AbstractStore | |||
{ | |||
protected AddressRepositoryQuery $query; | |||
@@ -3,8 +3,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Config; | |||
use Lc\CaracoleBundle\Resolver\MerchantResolver; | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class TaxRateStore | |||
class TaxRateStore extends AbstractStore | |||
{ | |||
protected TaxRateRepositoryQuery $query; | |||
protected MerchantResolver $merchantResolver; |
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Config; | |||
class UnitStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class UnitStore extends AbstractStore | |||
{ | |||
protected UnitRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Credit; | |||
class CreditHistoryStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class CreditHistoryStore extends AbstractStore | |||
{ | |||
protected CreditHistoryRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\File; | |||
class DocumentStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class DocumentStore extends AbstractStore | |||
{ | |||
protected DocumentRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Merchant; | |||
class MerchantStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class MerchantStore extends AbstractStore | |||
{ | |||
protected MerchantRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderPaymentStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class OrderPaymentStore extends AbstractStore | |||
{ | |||
protected OrderPaymentRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderProductReductionCatalogStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class OrderProductReductionCatalogStore extends AbstractStore | |||
{ | |||
protected OrderProductReductionCatalogRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderProductRefundStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class OrderProductRefundStore extends AbstractStore | |||
{ | |||
protected OrderProductRefundRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderProductStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class OrderProductStore extends AbstractStore | |||
{ | |||
protected OrderProductRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderReductionCartStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class OrderReductionCartStore extends AbstractStore | |||
{ | |||
protected OrderReductionCartRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderReductionCreditStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class OrderReductionCreditStore extends AbstractStore | |||
{ | |||
protected OrderReductionCreditRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderRefundStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class OrderRefundStore extends AbstractStore | |||
{ | |||
protected OrderRefundRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderShopStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class OrderShopStore extends AbstractStore | |||
{ | |||
protected OrderShopRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderStatusHistoryStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class OrderStatusHistoryStore extends AbstractStore | |||
{ | |||
protected OrderStatusHistoryRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderStatusStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class OrderStatusStore extends AbstractStore | |||
{ | |||
protected OrderStatusRepositoryQuery $query; | |||
@@ -18,7 +18,7 @@ class PointSaleRepositoryQuery extends AbstractRepositoryQuery | |||
public function filterByMerchant(MerchantInterface $merchant) | |||
{ | |||
return $this | |||
->andWhere(':merchant MEMBER OF .merchant') | |||
->andWhere(':merchant MEMBER OF .merchants') | |||
->setParameter(':merchant', $merchant); | |||
} | |||
} |
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\PointSale; | |||
class PointSaleStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class PointSaleStore extends AbstractStore | |||
{ | |||
protected PointSaleRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
class ProductCategoryStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class ProductCategoryStore extends AbstractStore | |||
{ | |||
protected ProductCategoryRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
class ProductFamilyStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class ProductFamilyStore extends AbstractStore | |||
{ | |||
protected ProductFamilyRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
class ProductStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class ProductStore extends AbstractStore | |||
{ | |||
protected ProductRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Reduction; | |||
class ReductionCartStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class ReductionCartStore extends AbstractStore | |||
{ | |||
protected ReductionCartRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Reduction; | |||
class ReductionCatalogStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class ReductionCatalogStore extends AbstractStore | |||
{ | |||
protected ReductionCatalogRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Reduction; | |||
class ReductionCreditStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class ReductionCreditStore extends AbstractStore | |||
{ | |||
protected ReductionCreditRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Section; | |||
class OpeningStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class OpeningStore extends AbstractStore | |||
{ | |||
protected OpeningRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Section; | |||
class SectionStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class SectionStore extends AbstractStore | |||
{ | |||
protected SectionRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Setting; | |||
class MerchantSettingStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class MerchantSettingStore extends AbstractStore | |||
{ | |||
protected MerchantSettingRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\Setting; | |||
class SectionSettingStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class SectionSettingStore extends AbstractStore | |||
{ | |||
protected SectionSettingRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\User; | |||
class GroupUserStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class GroupUserStore extends AbstractStore | |||
{ | |||
protected GroupUserRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\User; | |||
class UserMerchantStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class UserMerchantStore extends AbstractStore | |||
{ | |||
protected UserMerchantRepositoryQuery $query; | |||
@@ -2,7 +2,9 @@ | |||
namespace Lc\CaracoleBundle\Repository\User; | |||
class VisitorStore | |||
use Lc\SovBundle\Repository\AbstractStore; | |||
class VisitorStore extends AbstractStore | |||
{ | |||
protected VisitorRepositoryQuery $query; | |||