abstract class NewsletterAdminController extends AbstractAdminController | abstract class NewsletterAdminController extends AbstractAdminController | ||||
{ | { | ||||
public function configureFields(string $pageName): iterable | public function configureFields(string $pageName): iterable | ||||
{ | { | ||||
$panel = parent::configureFields($pageName); | |||||
return array_merge( | return array_merge( | ||||
[ | [ | ||||
FormField::addPanel('general'), | FormField::addPanel('general'), | ||||
->hideOnIndex(), | ->hideOnIndex(), | ||||
StatusField::new('status'), | StatusField::new('status'), | ||||
], | ], | ||||
$panel | |||||
$this->getSeoPanel(), | |||||
$this->getConfPanel() | |||||
); | ); | ||||
} | } | ||||
<?php | |||||
namespace Lc\SovBundle\Repository; | |||||
abstract class AbstractStore | |||||
{ | |||||
public function getRepositoryQuery() | |||||
{ | |||||
return $this->query; | |||||
} | |||||
} |
namespace Lc\SovBundle\Repository\File; | namespace Lc\SovBundle\Repository\File; | ||||
class FileStore implements FileStoreInterface | |||||
use Lc\SovBundle\Repository\AbstractStore; | |||||
class FileStore extends AbstractStore implements FileStoreInterface | |||||
{ | { | ||||
protected FileRepositoryQueryInterface $query; | protected FileRepositoryQueryInterface $query; | ||||
namespace Lc\SovBundle\Repository\Newsletter; | namespace Lc\SovBundle\Repository\Newsletter; | ||||
class NewsletterStore implements NewsletterStoreInterface | |||||
use Lc\SovBundle\Repository\AbstractStore; | |||||
class NewsletterStore extends AbstractStore implements NewsletterStoreInterface | |||||
{ | { | ||||
protected NewsletterRepositoryQueryInterface $query; | protected NewsletterRepositoryQueryInterface $query; | ||||
namespace Lc\SovBundle\Repository\Reminder; | namespace Lc\SovBundle\Repository\Reminder; | ||||
class ReminderStore implements ReminderStoreInterface | |||||
use Lc\SovBundle\Repository\AbstractStore; | |||||
class ReminderStore extends AbstractStore implements ReminderStoreInterface | |||||
{ | { | ||||
protected ReminderRepositoryQueryInterface $query; | protected ReminderRepositoryQueryInterface $query; | ||||
namespace Lc\SovBundle\Repository\Setting; | namespace Lc\SovBundle\Repository\Setting; | ||||
class SiteSettingStore implements SiteSettingStoreInterface | |||||
use Lc\SovBundle\Repository\AbstractStore; | |||||
class SiteSettingStore extends AbstractStore implements SiteSettingStoreInterface | |||||
{ | { | ||||
protected SiteSettingRepositoryQueryInterface $query; | protected SiteSettingRepositoryQueryInterface $query; | ||||
namespace Lc\SovBundle\Repository\Site; | namespace Lc\SovBundle\Repository\Site; | ||||
class NewsStore implements NewsStoreInterface | |||||
use Lc\SovBundle\Repository\AbstractStore; | |||||
class NewsStore extends AbstractStore implements NewsStoreInterface | |||||
{ | { | ||||
protected NewsRepositoryQueryInterface $query; | protected NewsRepositoryQueryInterface $query; | ||||
namespace Lc\SovBundle\Repository\Site; | namespace Lc\SovBundle\Repository\Site; | ||||
class PageStore implements PageStoreInterface | |||||
use Lc\SovBundle\Repository\AbstractStore; | |||||
class PageStore extends AbstractStore implements PageStoreInterface | |||||
{ | { | ||||
protected PageRepositoryQueryInterface $query; | protected PageRepositoryQueryInterface $query; | ||||
namespace Lc\SovBundle\Repository\Site; | namespace Lc\SovBundle\Repository\Site; | ||||
class SiteStore implements SiteStoreInterface | |||||
use Lc\SovBundle\Repository\AbstractStore; | |||||
class SiteStore extends AbstractStore implements SiteStoreInterface | |||||
{ | { | ||||
protected SiteRepositoryQueryInterface $query; | protected SiteRepositoryQueryInterface $query; | ||||
namespace Lc\SovBundle\Repository\Ticket; | namespace Lc\SovBundle\Repository\Ticket; | ||||
class TicketMessageStore implements TicketMessageStoreInterface | |||||
use Lc\SovBundle\Repository\AbstractStore; | |||||
class TicketMessageStore extends AbstractStore implements TicketMessageStoreInterface | |||||
{ | { | ||||
protected TicketMessageRepositoryQueryInterface $query; | protected TicketMessageRepositoryQueryInterface $query; | ||||
namespace Lc\SovBundle\Repository\Ticket; | namespace Lc\SovBundle\Repository\Ticket; | ||||
class TicketStore implements TicketStoreInterface | |||||
use Lc\SovBundle\Repository\AbstractStore; | |||||
class TicketStore extends AbstractStore implements TicketStoreInterface | |||||
{ | { | ||||
protected TicketRepositoryQueryInterface $query; | protected TicketRepositoryQueryInterface $query; | ||||
namespace Lc\SovBundle\Repository\User; | namespace Lc\SovBundle\Repository\User; | ||||
class GroupUserStore implements GroupUserStoreInterface | |||||
use Lc\SovBundle\Repository\AbstractStore; | |||||
class GroupUserStore extends AbstractStore implements GroupUserStoreInterface | |||||
{ | { | ||||
protected GroupUserRepositoryQueryInterface $query; | protected GroupUserRepositoryQueryInterface $query; | ||||
namespace Lc\SovBundle\Repository\User; | namespace Lc\SovBundle\Repository\User; | ||||
class UserStore implements UserStoreInterface | |||||
use Lc\SovBundle\Repository\AbstractStore; | |||||
class UserStore extends AbstractStore implements UserStoreInterface | |||||
{ | { | ||||
protected UserRepositoryQueryInterface $query; | protected UserRepositoryQueryInterface $query; | ||||