瀏覽代碼

AbstractStore

develop
Guillaume 3 年之前
父節點
當前提交
3533a22a4b
共有 13 個文件被更改,包括 46 次插入15 次删除
  1. +2
    -4
      Controller/Newsletter/NewsletterAdminController.php
  2. +11
    -0
      Repository/AbstractStore.php
  3. +3
    -1
      Repository/File/FileStore.php
  4. +3
    -1
      Repository/Newsletter/NewsletterStore.php
  5. +3
    -1
      Repository/Reminder/ReminderStore.php
  6. +3
    -1
      Repository/Setting/SiteSettingStore.php
  7. +3
    -1
      Repository/Site/NewsStore.php
  8. +3
    -1
      Repository/Site/PageStore.php
  9. +3
    -1
      Repository/Site/SiteStore.php
  10. +3
    -1
      Repository/Ticket/TicketMessageStore.php
  11. +3
    -1
      Repository/Ticket/TicketStore.php
  12. +3
    -1
      Repository/User/GroupUserStore.php
  13. +3
    -1
      Repository/User/UserStore.php

+ 2
- 4
Controller/Newsletter/NewsletterAdminController.php 查看文件

@@ -12,11 +12,8 @@ use Lc\SovBundle\Field\StatusField;

abstract class NewsletterAdminController extends AbstractAdminController
{

public function configureFields(string $pageName): iterable
{
$panel = parent::configureFields($pageName);

return array_merge(
[
FormField::addPanel('general'),
@@ -27,7 +24,8 @@ abstract class NewsletterAdminController extends AbstractAdminController
->hideOnIndex(),
StatusField::new('status'),
],
$panel
$this->getSeoPanel(),
$this->getConfPanel()
);
}


+ 11
- 0
Repository/AbstractStore.php 查看文件

@@ -0,0 +1,11 @@
<?php

namespace Lc\SovBundle\Repository;

abstract class AbstractStore
{
public function getRepositoryQuery()
{
return $this->query;
}
}

+ 3
- 1
Repository/File/FileStore.php 查看文件

@@ -2,7 +2,9 @@

namespace Lc\SovBundle\Repository\File;

class FileStore implements FileStoreInterface
use Lc\SovBundle\Repository\AbstractStore;

class FileStore extends AbstractStore implements FileStoreInterface
{
protected FileRepositoryQueryInterface $query;


+ 3
- 1
Repository/Newsletter/NewsletterStore.php 查看文件

@@ -2,7 +2,9 @@

namespace Lc\SovBundle\Repository\Newsletter;

class NewsletterStore implements NewsletterStoreInterface
use Lc\SovBundle\Repository\AbstractStore;

class NewsletterStore extends AbstractStore implements NewsletterStoreInterface
{
protected NewsletterRepositoryQueryInterface $query;


+ 3
- 1
Repository/Reminder/ReminderStore.php 查看文件

@@ -2,7 +2,9 @@

namespace Lc\SovBundle\Repository\Reminder;

class ReminderStore implements ReminderStoreInterface
use Lc\SovBundle\Repository\AbstractStore;

class ReminderStore extends AbstractStore implements ReminderStoreInterface
{
protected ReminderRepositoryQueryInterface $query;


+ 3
- 1
Repository/Setting/SiteSettingStore.php 查看文件

@@ -2,7 +2,9 @@

namespace Lc\SovBundle\Repository\Setting;

class SiteSettingStore implements SiteSettingStoreInterface
use Lc\SovBundle\Repository\AbstractStore;

class SiteSettingStore extends AbstractStore implements SiteSettingStoreInterface
{
protected SiteSettingRepositoryQueryInterface $query;


+ 3
- 1
Repository/Site/NewsStore.php 查看文件

@@ -2,7 +2,9 @@

namespace Lc\SovBundle\Repository\Site;

class NewsStore implements NewsStoreInterface
use Lc\SovBundle\Repository\AbstractStore;

class NewsStore extends AbstractStore implements NewsStoreInterface
{
protected NewsRepositoryQueryInterface $query;


+ 3
- 1
Repository/Site/PageStore.php 查看文件

@@ -2,7 +2,9 @@

namespace Lc\SovBundle\Repository\Site;

class PageStore implements PageStoreInterface
use Lc\SovBundle\Repository\AbstractStore;

class PageStore extends AbstractStore implements PageStoreInterface
{
protected PageRepositoryQueryInterface $query;


+ 3
- 1
Repository/Site/SiteStore.php 查看文件

@@ -2,7 +2,9 @@

namespace Lc\SovBundle\Repository\Site;

class SiteStore implements SiteStoreInterface
use Lc\SovBundle\Repository\AbstractStore;

class SiteStore extends AbstractStore implements SiteStoreInterface
{
protected SiteRepositoryQueryInterface $query;


+ 3
- 1
Repository/Ticket/TicketMessageStore.php 查看文件

@@ -2,7 +2,9 @@

namespace Lc\SovBundle\Repository\Ticket;

class TicketMessageStore implements TicketMessageStoreInterface
use Lc\SovBundle\Repository\AbstractStore;

class TicketMessageStore extends AbstractStore implements TicketMessageStoreInterface
{
protected TicketMessageRepositoryQueryInterface $query;


+ 3
- 1
Repository/Ticket/TicketStore.php 查看文件

@@ -2,7 +2,9 @@

namespace Lc\SovBundle\Repository\Ticket;

class TicketStore implements TicketStoreInterface
use Lc\SovBundle\Repository\AbstractStore;

class TicketStore extends AbstractStore implements TicketStoreInterface
{
protected TicketRepositoryQueryInterface $query;


+ 3
- 1
Repository/User/GroupUserStore.php 查看文件

@@ -2,7 +2,9 @@

namespace Lc\SovBundle\Repository\User;

class GroupUserStore implements GroupUserStoreInterface
use Lc\SovBundle\Repository\AbstractStore;

class GroupUserStore extends AbstractStore implements GroupUserStoreInterface
{
protected GroupUserRepositoryQueryInterface $query;


+ 3
- 1
Repository/User/UserStore.php 查看文件

@@ -2,7 +2,9 @@

namespace Lc\SovBundle\Repository\User;

class UserStore implements UserStoreInterface
use Lc\SovBundle\Repository\AbstractStore;

class UserStore extends AbstractStore implements UserStoreInterface
{
protected UserRepositoryQueryInterface $query;


Loading…
取消
儲存