瀏覽代碼

Factory

develop
Guillaume 3 年之前
父節點
當前提交
a618d61bc7
共有 14 個文件被更改,包括 65 次插入62 次删除
  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 查看文件

@@ -4,6 +4,7 @@ namespace App\Controller\Config;

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

class TaxRateAdminController extends CaracTaxRateAdminController
{
@@ -12,4 +13,8 @@ class TaxRateAdminController extends CaracTaxRateAdminController
return TaxRate::class;
}

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

+ 5
- 1
src/Controller/Config/UnitAdminController.php 查看文件

@@ -4,13 +4,17 @@ namespace App\Controller\Config;

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

class UnitAdminController extends CaracUnitAdminController
{

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

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

+ 6
- 1
src/Controller/Credit/CreditHistoryAdminController.php 查看文件

@@ -3,8 +3,8 @@
namespace App\Controller\Credit;

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

class CreditHistoryAdminController extends CaracCreditHistoryAdminController
{
@@ -12,4 +12,9 @@ class CreditHistoryAdminController extends CaracCreditHistoryAdminController
{
return CreditHistory::class;
}

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

+ 6
- 0
src/Controller/Merchant/MerchantAdminController.php 查看文件

@@ -4,6 +4,7 @@ namespace App\Controller\Merchant;

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

class MerchantAdminController extends CaracMerchantAdminController
{
@@ -11,4 +12,9 @@ class MerchantAdminController extends CaracMerchantAdminController
{
return Merchant::class;
}

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

+ 6
- 0
src/Controller/Newsletter/NewsletterAdminController.php 查看文件

@@ -4,6 +4,7 @@ namespace App\Controller\Newsletter;

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

class NewsletterAdminController extends CaracNewsletterAdminController
{
@@ -11,4 +12,9 @@ class NewsletterAdminController extends CaracNewsletterAdminController
{
return Newsletter::class;
}

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

+ 5
- 0
src/Controller/PointSale/PointSaleAdminController.php 查看文件

@@ -4,6 +4,7 @@ namespace App\Controller\PointSale;

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

class PointSaleAdminController extends CaracPointSaleAdminController
{
@@ -12,4 +13,8 @@ class PointSaleAdminController extends CaracPointSaleAdminController
return PointSale::class;
}

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

+ 5
- 0
src/Controller/Section/SectionAdminController.php 查看文件

@@ -4,6 +4,7 @@ namespace App\Controller\Section;

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

class SectionAdminController extends CaracSectionAdminController
{
@@ -12,4 +13,8 @@ class SectionAdminController extends CaracSectionAdminController
return Section::class;
}

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

+ 6
- 0
src/Controller/Site/NewsAdminController.php 查看文件

@@ -4,6 +4,7 @@ namespace App\Controller\Site;

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

class NewsAdminController extends CaracNewsAdminController
{
@@ -11,4 +12,9 @@ class NewsAdminController extends CaracNewsAdminController
{
return News::class;
}

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

+ 1
- 1
src/Controller/Site/PageAdminController.php 查看文件

@@ -4,7 +4,7 @@ namespace App\Controller\Site;

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

class PageAdminController extends CaracPageAdminController
{

+ 5
- 0
src/Controller/Ticket/TicketAdminController.php 查看文件

@@ -4,6 +4,7 @@ namespace App\Controller\Ticket;

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

class TicketAdminController extends CaracTicketAdminController
{
@@ -12,4 +13,8 @@ class TicketAdminController extends CaracTicketAdminController
return Ticket::class;
}

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

+ 10
- 4
src/Controller/User/GroupUserAdminController.php 查看文件

@@ -4,11 +4,17 @@ namespace App\Controller\User;

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

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 查看文件

@@ -4,7 +4,7 @@ namespace App\Controller\User;

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

class UserMerchantAdminController extends CaracUserMerchantAdminController
{
@@ -13,6 +13,8 @@ class UserMerchantAdminController extends CaracUserMerchantAdminController
return UserMerchant::class;
}



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

+ 0
- 26
src/Entity/Credit/CreditConfig.php 查看文件

@@ -1,26 +0,0 @@
<?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 查看文件

@@ -1,26 +0,0 @@
<?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…
取消
儲存