Browse Source

Factory

develop
Guillaume 3 years ago
parent
commit
a618d61bc7
14 changed files with 65 additions and 62 deletions
  1. +5
    -0
      src/Controller/Config/TaxRateAdminController.php
  2. +5
    -1
      src/Controller/Config/UnitAdminController.php
  3. +6
    -1
      src/Controller/Credit/CreditHistoryAdminController.php
  4. +6
    -0
      src/Controller/Merchant/MerchantAdminController.php
  5. +6
    -0
      src/Controller/Newsletter/NewsletterAdminController.php
  6. +5
    -0
      src/Controller/PointSale/PointSaleAdminController.php
  7. +5
    -0
      src/Controller/Section/SectionAdminController.php
  8. +6
    -0
      src/Controller/Site/NewsAdminController.php
  9. +1
    -1
      src/Controller/Site/PageAdminController.php
  10. +5
    -0
      src/Controller/Ticket/TicketAdminController.php
  11. +10
    -4
      src/Controller/User/GroupUserAdminController.php
  12. +5
    -3
      src/Controller/User/UserMerchantAdminController.php
  13. +0
    -26
      src/Entity/Credit/CreditConfig.php
  14. +0
    -26
      src/Entity/PointSale/PointSaleDayInfo.php

+ 5
- 0
src/Controller/Config/TaxRateAdminController.php View File



use App\Entity\Config\TaxRate; use App\Entity\Config\TaxRate;
use Lc\CaracoleBundle\Controller\Config\TaxRateAdminController as CaracTaxRateAdminController; use Lc\CaracoleBundle\Controller\Config\TaxRateAdminController as CaracTaxRateAdminController;
use Lc\CaracoleBundle\Factory\Config\TaxRateFactory;


class TaxRateAdminController extends CaracTaxRateAdminController class TaxRateAdminController extends CaracTaxRateAdminController
{ {
return TaxRate::class; return TaxRate::class;
} }


public function getEntityFactory(): string
{
return TaxRateFactory::class;
}
} }

+ 5
- 1
src/Controller/Config/UnitAdminController.php View File



use App\Entity\Config\Unit; use App\Entity\Config\Unit;
use Lc\CaracoleBundle\Controller\Config\UnitAdminController as CaracUnitAdminController; use Lc\CaracoleBundle\Controller\Config\UnitAdminController as CaracUnitAdminController;
use Lc\CaracoleBundle\Factory\Config\UnitFactory;


class UnitAdminController extends CaracUnitAdminController class UnitAdminController extends CaracUnitAdminController
{ {

public static function getEntityFqcn(): string public static function getEntityFqcn(): string
{ {
return Unit::class; return Unit::class;
} }


public function getEntityFactory(): string
{
return UnitFactory::class;
}
} }

+ 6
- 1
src/Controller/Credit/CreditHistoryAdminController.php View File

namespace App\Controller\Credit; namespace App\Controller\Credit;


use App\Entity\Credit\CreditHistory; use App\Entity\Credit\CreditHistory;
use App\Entity\Newsletter\Newsletter;
use Lc\CaracoleBundle\Controller\Credit\CreditHistoryAdminController as CaracCreditHistoryAdminController; use Lc\CaracoleBundle\Controller\Credit\CreditHistoryAdminController as CaracCreditHistoryAdminController;
use Lc\CaracoleBundle\Factory\Credit\CreditHistoryFactory;


class CreditHistoryAdminController extends CaracCreditHistoryAdminController class CreditHistoryAdminController extends CaracCreditHistoryAdminController
{ {
{ {
return CreditHistory::class; return CreditHistory::class;
} }

public function getEntityFactory(): string
{
return CreditHistoryFactory::class;
}
} }

+ 6
- 0
src/Controller/Merchant/MerchantAdminController.php View File



use App\Entity\Merchant\Merchant; use App\Entity\Merchant\Merchant;
use Lc\CaracoleBundle\Controller\Merchant\MerchantAdminController as CaracMerchantAdminController; use Lc\CaracoleBundle\Controller\Merchant\MerchantAdminController as CaracMerchantAdminController;
use Lc\CaracoleBundle\Factory\Merchant\MerchantFactory;


class MerchantAdminController extends CaracMerchantAdminController class MerchantAdminController extends CaracMerchantAdminController
{ {
{ {
return Merchant::class; return Merchant::class;
} }

public function getEntityFactory(): string
{
return MerchantFactory::class;
}
} }

+ 6
- 0
src/Controller/Newsletter/NewsletterAdminController.php View File



use App\Entity\Newsletter\Newsletter; use App\Entity\Newsletter\Newsletter;
use Lc\CaracoleBundle\Controller\Newsletter\NewsletterAdminController as CaracNewsletterAdminController; use Lc\CaracoleBundle\Controller\Newsletter\NewsletterAdminController as CaracNewsletterAdminController;
use Lc\CaracoleBundle\Factory\Newsletter\NewsletterFactory;


class NewsletterAdminController extends CaracNewsletterAdminController class NewsletterAdminController extends CaracNewsletterAdminController
{ {
{ {
return Newsletter::class; return Newsletter::class;
} }

public function getEntityFactory(): string
{
return NewsletterFactory::class;
}
} }

+ 5
- 0
src/Controller/PointSale/PointSaleAdminController.php View File



use App\Entity\PointSale\PointSale; use App\Entity\PointSale\PointSale;
use Lc\CaracoleBundle\Controller\PointSale\PointSaleAdminController as CaracPointSaleAdminController; use Lc\CaracoleBundle\Controller\PointSale\PointSaleAdminController as CaracPointSaleAdminController;
use Lc\CaracoleBundle\Factory\PointSale\PointSaleFactory;


class PointSaleAdminController extends CaracPointSaleAdminController class PointSaleAdminController extends CaracPointSaleAdminController
{ {
return PointSale::class; return PointSale::class;
} }


public function getEntityFactory(): string
{
return PointSaleFactory::class;
}
} }

+ 5
- 0
src/Controller/Section/SectionAdminController.php View File



use App\Entity\Section\Section; use App\Entity\Section\Section;
use Lc\CaracoleBundle\Controller\Section\SectionAdminController as CaracSectionAdminController; use Lc\CaracoleBundle\Controller\Section\SectionAdminController as CaracSectionAdminController;
use Lc\CaracoleBundle\Factory\Section\SectionFactory;


class SectionAdminController extends CaracSectionAdminController class SectionAdminController extends CaracSectionAdminController
{ {
return Section::class; return Section::class;
} }


public function getEntityFactory(): string
{
return SectionFactory::class;
}
} }

+ 6
- 0
src/Controller/Site/NewsAdminController.php View File



use App\Entity\Site\News; use App\Entity\Site\News;
use Lc\CaracoleBundle\Controller\Site\NewsAdminController as CaracNewsAdminController; use Lc\CaracoleBundle\Controller\Site\NewsAdminController as CaracNewsAdminController;
use Lc\CaracoleBundle\Factory\Site\NewsFactory;


class NewsAdminController extends CaracNewsAdminController class NewsAdminController extends CaracNewsAdminController
{ {
{ {
return News::class; return News::class;
} }

public function getEntityFactory(): string
{
return NewsFactory::class;
}
} }

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



use App\Entity\Site\Page; use App\Entity\Site\Page;
use Lc\CaracoleBundle\Controller\Site\PageAdminController as CaracPageAdminController; use Lc\CaracoleBundle\Controller\Site\PageAdminController as CaracPageAdminController;
use Lc\SovBundle\Factory\Site\PageFactory;
use Lc\CaracoleBundle\Factory\Site\PageFactory;


class PageAdminController extends CaracPageAdminController class PageAdminController extends CaracPageAdminController
{ {

+ 5
- 0
src/Controller/Ticket/TicketAdminController.php View File



use App\Entity\Ticket\Ticket; use App\Entity\Ticket\Ticket;
use Lc\CaracoleBundle\Controller\Ticket\TicketAdminController as CaracTicketAdminController; use Lc\CaracoleBundle\Controller\Ticket\TicketAdminController as CaracTicketAdminController;
use Lc\CaracoleBundle\Factory\Ticket\TicketFactory;


class TicketAdminController extends CaracTicketAdminController class TicketAdminController extends CaracTicketAdminController
{ {
return Ticket::class; return Ticket::class;
} }


public function getEntityFactory(): string
{
return TicketFactory::class;
}
} }

+ 10
- 4
src/Controller/User/GroupUserAdminController.php View File



use App\Entity\User\GroupUser; use App\Entity\User\GroupUser;
use Lc\CaracoleBundle\Controller\User\GroupUserAdminController as CaracAbstractUserAdminController; use Lc\CaracoleBundle\Controller\User\GroupUserAdminController as CaracAbstractUserAdminController;
use Lc\CaracoleBundle\Factory\User\GroupUserFactory;


class GroupUserAdminController extends CaracAbstractUserAdminController class GroupUserAdminController extends CaracAbstractUserAdminController
{ {
public static function getEntityFqcn(): string
{
return GroupUser::class;
}
public static function getEntityFqcn(): string
{
return GroupUser::class;
}

public function getEntityFactory(): string
{
return GroupUserFactory::class;
}
} }

+ 5
- 3
src/Controller/User/UserMerchantAdminController.php View File



use App\Entity\User\UserMerchant; use App\Entity\User\UserMerchant;
use Lc\CaracoleBundle\Controller\User\UserMerchantAdminController as CaracUserMerchantAdminController; use Lc\CaracoleBundle\Controller\User\UserMerchantAdminController as CaracUserMerchantAdminController;
use Lc\CaracoleBundle\Factory\User\UserMerchantFactory;


class UserMerchantAdminController extends CaracUserMerchantAdminController class UserMerchantAdminController extends CaracUserMerchantAdminController
{ {
return UserMerchant::class; return UserMerchant::class;
} }




public function getEntityFactory(): string
{
return UserMerchantFactory::class;
}
} }

+ 0
- 26
src/Entity/Credit/CreditConfig.php View File

<?php

namespace App\Entity\Credit;

use Lc\CaracoleBundle\Repository\Credit\CreditConfigRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Model\Credit\CreditConfigInterface;
use Lc\CaracoleBundle\Model\Credit\CreditConfigModel;

/**
* @ORM\Entity(repositoryClass=CreditConfigRepository::class)
*/
class CreditConfig extends CreditConfigModel implements CreditConfigInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 0
- 26
src/Entity/PointSale/PointSaleDayInfo.php View File

<?php

namespace App\Entity\PointSale;

use Lc\CaracoleBundle\Repository\PointSale\PointSaleDayInfoRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Model\PointSale\PointSaleDayInfoInterface;
use Lc\CaracoleBundle\Model\PointSale\PointSaleDayInfoModel;

/**
* @ORM\Entity(repositoryClass=PointSaleDayInfoRepository::class)
*/
class PointSaleDayInfo extends PointSaleDayInfoModel implements PointSaleDayInfoInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

Loading…
Cancel
Save