Lc\SovBundle\Model\User\UserInterface: App\Entity\User\User | Lc\SovBundle\Model\User\UserInterface: App\Entity\User\User | ||||
Lc\SovBundle\Doctrine\Extension\FileInterface: App\Entity\File\File | Lc\SovBundle\Doctrine\Extension\FileInterface: App\Entity\File\File | ||||
Lc\CaracoleBundle\Model\Address\AddressInterface: App\Entity\Address\Address | Lc\CaracoleBundle\Model\Address\AddressInterface: App\Entity\Address\Address | ||||
Lc\CaracoleBundle\Model\Common\TaxRateInterface: App\Entity\Common\TaxRate | |||||
Lc\CaracoleBundle\Model\Common\UnitInterface: App\Entity\Common\Unit | |||||
Lc\CaracoleBundle\Model\Config\TaxRateInterface: App\Entity\Config\TaxRate | |||||
Lc\CaracoleBundle\Model\Config\UnitInterface: App\Entity\Config\Unit | |||||
Lc\CaracoleBundle\Model\Credit\CreditConfigInterface: App\Entity\Credit\CreditConfig | Lc\CaracoleBundle\Model\Credit\CreditConfigInterface: App\Entity\Credit\CreditConfig | ||||
Lc\CaracoleBundle\Model\Credit\CreditHistoryInterface: App\Entity\Credit\CreditHistory | Lc\CaracoleBundle\Model\Credit\CreditHistoryInterface: App\Entity\Credit\CreditHistory | ||||
Lc\CaracoleBundle\Model\File\DocumentInterface: App\Entity\File\Document | Lc\CaracoleBundle\Model\File\DocumentInterface: App\Entity\File\Document |
# see https://symfony.com/doc/current/reference/configuration/framework.html | |||||
lc_sov: | lc_sov: | ||||
homepage_route: 'app_homepage' | |||||
homepage_route: 'app_homepage' | |||||
login_redirection: | |||||
redirect_referer: true | |||||
roles_redirection: | |||||
- { role: "ROLE_ADMIN", redirect: "admin_dashboard" } | |||||
- { role: "ROLE_ANIMATOR", redirect: "admin_dashboard" } | |||||
- { role: "ROLE_SUPER_ADMIN", redirect: "admin_dashboard" } |
admin_dashboard: | admin_dashboard: | ||||
path: /admin | path: /admin | ||||
controller: App\Controller\Admin\DashboardController::index | |||||
controller: App\Controller\Dashboard\DashboardAdminController::index | |||||
app_homepage: | app_homepage: | ||||
path: / | path: / |
<?php | <?php | ||||
namespace App\Controller\Common; | |||||
namespace App\Controller\Config; | |||||
use App\Entity\Common\TaxRate; | |||||
use App\Entity\Config\TaxRate; | |||||
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\Common\TaxRateCrudController as AbstractUserCrudController; | |||||
use Lc\SovBundle\Field\CKEditorField; | |||||
use Lc\SovBundle\Field\GalleryManagerField; | |||||
use Lc\SovBundle\Field\ImageManagerField; | |||||
use Lc\SovBundle\Field\StatusField; | |||||
use Lc\CaracoleBundle\Controller\Config\TaxRateAdminController as CaracTaxRateAdminController; | |||||
class TaxRateCrudController extends AbstractUserCrudController | |||||
class TaxRateAdminController extends CaracTaxRateAdminController | |||||
{ | { | ||||
public static function getEntityFqcn(): string | public static function getEntityFqcn(): string | ||||
{ | { | ||||
return TaxRate::class; | return TaxRate::class; |
<?php | <?php | ||||
namespace App\Controller\Admin; | |||||
namespace App\Controller\Dashboard; | |||||
use App\Entity\Common\TaxRate; | |||||
use App\Entity\Config\TaxRate; | |||||
use App\Entity\Merchant\Merchant; | use App\Entity\Merchant\Merchant; | ||||
use App\Entity\Section\Section; | use App\Entity\Section\Section; | ||||
use App\Entity\Site\Page; | use App\Entity\Site\Page; | ||||
use App\Entity\User\User; | use App\Entity\User\User; | ||||
use EasyCorp\Bundle\EasyAdminBundle\Config\MenuItem; | use EasyCorp\Bundle\EasyAdminBundle\Config\MenuItem; | ||||
use Lc\CaracoleBundle\Controller\Admin\DashboardController as CaracDashboardController; | |||||
use Lc\CaracoleBundle\Controller\Dashboard\DashboardAdminController as CaracDashboardController; | |||||
use Symfony\Component\HttpFoundation\Response; | use Symfony\Component\HttpFoundation\Response; | ||||
class DashboardController extends CaracDashboardController | |||||
class DashboardAdminController extends CaracDashboardController | |||||
{ | { | ||||
public function configureMenuItems(): iterable | public function configureMenuItems(): iterable |
<?php | <?php | ||||
namespace App\Controller\Admin; | |||||
namespace App\Controller\Merchant; | |||||
use App\Entity\Merchant\Merchant; | use App\Entity\Merchant\Merchant; | ||||
use App\Entity\Section\Section; | use App\Entity\Section\Section; | ||||
use EasyCorp\Bundle\EasyAdminBundle\Field\FormField; | use EasyCorp\Bundle\EasyAdminBundle\Field\FormField; | ||||
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\SovBundle\Controller\Admin\AbstractCrudController; | |||||
use Lc\SovBundle\Controller\AbstractAdminController; | |||||
use Lc\SovBundle\Field\BooleanField; | use Lc\SovBundle\Field\BooleanField; | ||||
use Lc\SovBundle\Field\CKEditorField; | use Lc\SovBundle\Field\CKEditorField; | ||||
use Lc\SovBundle\Field\StatusField; | use Lc\SovBundle\Field\StatusField; | ||||
class MerchantCrudController extends AbstractCrudController | |||||
class MerchantAdminController extends AbstractAdminController | |||||
{ | { | ||||
public static function getEntityFqcn(): string | public static function getEntityFqcn(): string | ||||
{ | { |
<?php | <?php | ||||
namespace App\Controller\Admin; | |||||
namespace App\Controller\Section; | |||||
use App\Entity\Section\Section; | use App\Entity\Section\Section; | ||||
use App\Entity\Site\Page; | use App\Entity\Site\Page; | ||||
use EasyCorp\Bundle\EasyAdminBundle\Field\FormField; | use EasyCorp\Bundle\EasyAdminBundle\Field\FormField; | ||||
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\SovBundle\Controller\Admin\AbstractCrudController; | |||||
use Lc\SovBundle\Controller\AbstractAdminController; | |||||
use Lc\SovBundle\Field\BooleanField; | use Lc\SovBundle\Field\BooleanField; | ||||
use Lc\SovBundle\Field\CKEditorField; | use Lc\SovBundle\Field\CKEditorField; | ||||
use Lc\SovBundle\Field\StatusField; | use Lc\SovBundle\Field\StatusField; | ||||
class SectionCrudController extends AbstractCrudController | |||||
class SectionAdminController extends AbstractAdminController | |||||
{ | { | ||||
public static function getEntityFqcn(): string | public static function getEntityFqcn(): string | ||||
{ | { |
<?php | <?php | ||||
namespace App\Controller\Admin; | |||||
namespace App\Controller\Site; | |||||
use App\Entity\Site\Page; | use App\Entity\Site\Page; | ||||
use EasyCorp\Bundle\EasyAdminBundle\Field\FormField; | use EasyCorp\Bundle\EasyAdminBundle\Field\FormField; | ||||
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\Admin\AbstractCrudController; | |||||
use Lc\CaracoleBundle\Controller\AbstractAdminController; | |||||
use Lc\SovBundle\Field\CKEditorField; | use Lc\SovBundle\Field\CKEditorField; | ||||
use Lc\SovBundle\Field\StatusField; | use Lc\SovBundle\Field\StatusField; | ||||
class PageCrudController extends AbstractCrudController | |||||
class PageAdminController extends AbstractAdminController | |||||
{ | { | ||||
public static function getEntityFqcn(): string | public static function getEntityFqcn(): string | ||||
{ | { |
use App\Entity\User\GroupUser; | use App\Entity\User\GroupUser; | ||||
use EasyCorp\Bundle\EasyAdminBundle\Config\Crud; | use EasyCorp\Bundle\EasyAdminBundle\Config\Crud; | ||||
use Lc\CaracoleBundle\Controller\User\GroupUserCrudController as AbstractUserCrudController; | |||||
use Lc\CaracoleBundle\Controller\User\GroupUserAdminController as AbstractUserCrudController; | |||||
class GroupUserCrudController extends AbstractUserCrudController | |||||
class GroupUserAdminController extends AbstractUserCrudController | |||||
{ | { | ||||
public static function getEntityFqcn(): string | public static function getEntityFqcn(): string | ||||
{ | { |
namespace App\Controller\User; | namespace App\Controller\User; | ||||
use App\Entity\User\User; | use App\Entity\User\User; | ||||
use Lc\SovBundle\Controller\Admin\UserCrudController as AbstractUserCrudController; | |||||
use Lc\SovBundle\Controller\User\UserAdminController as SovUserAdminController; | |||||
class UserCrudController extends AbstractUserCrudController | |||||
class UserAdminController extends SovUserAdminController | |||||
{ | { | ||||
public static function getEntityFqcn(): string | public static function getEntityFqcn(): string | ||||
{ | { |
<?php | <?php | ||||
namespace App\Entity\Common; | |||||
namespace App\Entity\Config; | |||||
use Lc\CaracoleBundle\Repository\Common\TaxRateRepository; | |||||
use Lc\CaracoleBundle\Repository\Config\TaxRateRepository; | |||||
use Doctrine\ORM\Mapping as ORM; | use Doctrine\ORM\Mapping as ORM; | ||||
use Lc\CaracoleBundle\Model\Common\TaxRateInterface; | |||||
use Lc\CaracoleBundle\Model\Common\TaxRateModel; | |||||
use Lc\CaracoleBundle\Model\Config\TaxRateInterface; | |||||
use Lc\CaracoleBundle\Model\Config\TaxRateModel; | |||||
/** | /** | ||||
* @ORM\Entity(repositoryClass=TaxRateRepository::class) | * @ORM\Entity(repositoryClass=TaxRateRepository::class) |
<?php | <?php | ||||
namespace App\Entity\Common; | |||||
namespace App\Entity\Config; | |||||
use Lc\CaracoleBundle\Repository\Common\UnitRepository; | |||||
use Lc\CaracoleBundle\Repository\Config\UnitRepository; | |||||
use Doctrine\ORM\Mapping as ORM; | use Doctrine\ORM\Mapping as ORM; | ||||
use Lc\CaracoleBundle\Model\Common\UnitInterface; | |||||
use Lc\CaracoleBundle\Model\Common\UnitModel; | |||||
use Lc\CaracoleBundle\Model\Config\UnitInterface; | |||||
use Lc\CaracoleBundle\Model\Config\UnitModel; | |||||
/** | /** | ||||
* @ORM\Entity(repositoryClass=UnitRepository::class) | * @ORM\Entity(repositoryClass=UnitRepository::class) |