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