@@ -2,8 +2,8 @@ | |||
namespace Lc\SovBundle\Authenticator; | |||
use Lc\SovBundle\IModel\User\UserInterface; | |||
use Lc\SovBundle\Manager\EntityManager; | |||
use Lc\SovBundle\Model\User\UserInterface; | |||
use Lc\SovBundle\Doctrine\EntityManager; | |||
use Symfony\Component\HttpFoundation\RedirectResponse; | |||
use Symfony\Component\HttpFoundation\Request; | |||
use Symfony\Component\Security\Core\User\UserInterface as SfUserInterface; |
@@ -3,8 +3,8 @@ | |||
namespace Lc\SovBundle\Command; | |||
use Lc\SovBundle\IModel\User\UserInterface; | |||
use Lc\SovBundle\Manager\EntityManager; | |||
use Lc\SovBundle\Model\User\UserInterface; | |||
use Lc\SovBundle\Doctrine\EntityManager; | |||
use Symfony\Component\Console\Command\Command; | |||
use Symfony\Component\Console\Input\InputArgument; | |||
use Symfony\Component\Console\Input\InputInterface; |
@@ -9,7 +9,7 @@ use EasyCorp\Bundle\EasyAdminBundle\Config\Assets; | |||
use EasyCorp\Bundle\EasyAdminBundle\Config\Crud; | |||
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController as EaAbstractCrudController; | |||
use EasyCorp\Bundle\EasyAdminBundle\Router\AdminUrlGenerator; | |||
use Lc\SovBundle\IModel\Translation\TranslatableInterface; | |||
use Lc\SovBundle\Doctrine\Extension\TranslatableInterface; | |||
abstract class AbstractCrudController extends EaAbstractCrudController | |||
{ |
@@ -1,6 +1,6 @@ | |||
<?php | |||
namespace Lc\SovBundle\IModel; | |||
namespace Lc\SovBundle\Doctrine; | |||
interface EntityInterface | |||
{ |
@@ -1,6 +1,6 @@ | |||
<?php | |||
namespace Lc\SovBundle\Manager; | |||
namespace Lc\SovBundle\Doctrine; | |||
use Doctrine\ORM\EntityManager as DoctrineEntityManager; | |||
use Doctrine\ORM\EntityManagerInterface; |
@@ -1,6 +1,7 @@ | |||
<?php | |||
namespace Lc\SovBundle\IModel\Cms; | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
interface BlameableInterface | |||
{ |
@@ -1,10 +1,10 @@ | |||
<?php | |||
namespace Lc\SovBundle\Model\Cms; | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Gedmo\Mapping\Annotation as Gedmo; | |||
use Lc\SovBundle\IModel\User\UserInterface; | |||
use Lc\SovBundle\Model\User\UserInterface; | |||
trait BlameableTrait | |||
{ |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
interface DevAliasInterface | |||
{ | |||
} |
@@ -1,8 +1,7 @@ | |||
<?php | |||
namespace Lc\SovBundle\Model\Cms; | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
use Doctrine\Common\Collections\ArrayCollection; | |||
use Doctrine\ORM\Mapping as ORM; | |||
trait DevAliasTrait |
@@ -0,0 +1,10 @@ | |||
<?php | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
interface OpenGraphInterface | |||
{ | |||
} |
@@ -0,0 +1,64 @@ | |||
<?php | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Lc\SovBundle\Model\File\File; | |||
use Lc\SovBundle\Model\File\FileInterface; | |||
trait OpenGraphTrait | |||
{ | |||
/** | |||
* @ORM\Column(type="string", nullable=true) | |||
*/ | |||
protected $openGraphTitle; | |||
/** | |||
* @ORM\Column(type="text", nullable=true) | |||
*/ | |||
protected $openGraphDescription; | |||
/** | |||
* @ORM\ManyToOne(targetEntity=FileInterface::class, cascade={"persist", "remove"}) | |||
*/ | |||
protected $openGraphImage; | |||
public function getOpenGraphTitle(): ?string | |||
{ | |||
return $this->openGraphTitle; | |||
} | |||
public function setOpenGraphTitle(string $openGraphTitle): self | |||
{ | |||
$this->openGraphTitle = $openGraphTitle; | |||
return $this; | |||
} | |||
public function getOpenGraphDescription(): ?string | |||
{ | |||
return $this->openGraphDescription; | |||
} | |||
public function setOpenGraphDescription(?string $openGraphDescription): self | |||
{ | |||
$this->openGraphDescription = $openGraphDescription; | |||
return $this; | |||
} | |||
public function getOpenGraphImage(): ?File | |||
{ | |||
return $this->openGraphImage; | |||
} | |||
public function setOpenGraphImage(?File $openGraphImage): self | |||
{ | |||
$this->openGraphImage = $openGraphImage; | |||
return $this; | |||
} | |||
} |
@@ -0,0 +1,10 @@ | |||
<?php | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
interface SeoInterface | |||
{ | |||
} |
@@ -1,6 +1,6 @@ | |||
<?php | |||
namespace Lc\SovBundle\Model\Cms; | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
use Doctrine\ORM\Mapping as ORM; | |||
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
interface SluggableInterface | |||
{ | |||
} |
@@ -1,6 +1,6 @@ | |||
<?php | |||
namespace Lc\SovBundle\Model\Cms; | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Gedmo\Mapping\Annotation as Gedmo; |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
interface SortableInterface | |||
{ | |||
} |
@@ -1,6 +1,6 @@ | |||
<?php | |||
namespace Lc\SovBundle\Model\Cms; | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Gedmo\Mapping\Annotation as Gedmo; |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
interface StatusInterface | |||
{ | |||
} |
@@ -1,6 +1,6 @@ | |||
<?php | |||
namespace Lc\SovBundle\Model\Cms; | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
use Doctrine\ORM\Mapping as ORM; | |||
@@ -1,6 +1,6 @@ | |||
<?php | |||
namespace Lc\SovBundle\IModel\Cms; | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
interface TimestampableInterface | |||
{ |
@@ -1,6 +1,6 @@ | |||
<?php | |||
namespace Lc\SovBundle\Model\Cms; | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Gedmo\Mapping\Annotation as Gedmo; |
@@ -1,6 +1,6 @@ | |||
<?php | |||
namespace Lc\SovBundle\IModel\Translation; | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
interface TranslatableInterface | |||
{ |
@@ -1,15 +1,10 @@ | |||
<?php | |||
namespace Lc\SovBundle\Model\Translation; | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Gedmo\Mapping\Annotation as Gedmo; | |||
use Lc\SovBundle\Entity\Translation\EntityTranslation; | |||
/** | |||
* @Gedmo\TranslationEntity(class=EntityTranslation::class) | |||
*/ | |||
trait TranslatableTrait | |||
{ | |||
/** |
@@ -1,6 +1,6 @@ | |||
<?php | |||
namespace Lc\SovBundle\IModel\Cms; | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
interface TreeInterface | |||
{ |
@@ -1,6 +1,6 @@ | |||
<?php | |||
namespace Lc\SovBundle\Model\Cms; | |||
namespace Lc\SovBundle\Doctrine\Extension; | |||
use Doctrine\Common\Collections\ArrayCollection; | |||
use Doctrine\ORM\Mapping as ORM; |
@@ -0,0 +1,78 @@ | |||
<?php | |||
namespace Lc\SovBundle\Doctrine\Pattern; | |||
use Lc\SovBundle\Doctrine\EntityInterface; | |||
use Lc\SovBundle\Doctrine\Extension\BlameableInterface; | |||
use Lc\SovBundle\Doctrine\Extension\BlameableTrait; | |||
use Lc\SovBundle\Doctrine\Extension\DevAliasInterface; | |||
use Lc\SovBundle\Doctrine\Extension\DevAliasTrait; | |||
use Lc\SovBundle\Doctrine\Extension\SeoInterface; | |||
use Lc\SovBundle\Doctrine\Extension\SeoTrait; | |||
use Lc\SovBundle\Doctrine\Extension\SluggableInterface; | |||
use Lc\SovBundle\Doctrine\Extension\SluggableTrait; | |||
use Lc\SovBundle\Doctrine\Extension\SortableInterface; | |||
use Lc\SovBundle\Doctrine\Extension\SortableTrait; | |||
use Lc\SovBundle\Doctrine\Extension\StatusTrait; | |||
use Lc\SovBundle\Doctrine\Extension\TimestampableInterface; | |||
use Lc\SovBundle\Doctrine\Extension\StatusInterface; | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Gedmo\Mapping\Annotation as Gedmo; | |||
use Lc\SovBundle\Doctrine\Extension\TimestampableTrait; | |||
/** | |||
* @ORM\MappedSuperclass | |||
*/ | |||
abstract class EntityFullAbstract implements BlameableInterface, SeoInterface, SluggableInterface, SortableInterface, | |||
StatusInterface, TimestampableInterface, DevAliasInterface, EntityInterface | |||
{ | |||
use BlameableTrait; | |||
use SeoTrait; | |||
use SluggableTrait; | |||
use SortableTrait; | |||
use StatusTrait; | |||
use TimestampableTrait; | |||
use DevAliasTrait; | |||
/** | |||
* @Gedmo\Translatable | |||
* @ORM\Column(type="string", length=255) | |||
*/ | |||
protected $title; | |||
/** | |||
* @Gedmo\Translatable | |||
* @ORM\Column(type="text", nullable=true) | |||
*/ | |||
protected $description; | |||
public function getTitle(): ?string | |||
{ | |||
return $this->title; | |||
} | |||
public function setTitle(string $title): self | |||
{ | |||
$this->title = $title; | |||
return $this; | |||
} | |||
public function getDescription(): ?string | |||
{ | |||
return $this->description; | |||
} | |||
public function setDescription(?string $description): self | |||
{ | |||
$this->description = $description; | |||
return $this; | |||
} | |||
} |
@@ -0,0 +1,27 @@ | |||
<?php | |||
namespace Lc\SovBundle\Doctrine\Pattern; | |||
use Lc\SovBundle\Doctrine\EntityInterface; | |||
use Lc\SovBundle\Doctrine\Extension\BlameableInterface; | |||
use Lc\SovBundle\Doctrine\Extension\BlameableTrait; | |||
use Lc\SovBundle\Doctrine\Extension\DevAliasInterface; | |||
use Lc\SovBundle\Doctrine\Extension\DevAliasTrait; | |||
use Lc\SovBundle\Doctrine\Extension\TimestampableInterface; | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Gedmo\Mapping\Annotation as Gedmo; | |||
use Lc\SovBundle\Doctrine\Extension\TimestampableTrait; | |||
/** | |||
* @ORM\MappedSuperclass | |||
*/ | |||
abstract class EntityLightAbstract implements BlameableInterface, TimestampableInterface, DevAliasInterface, | |||
EntityInterface | |||
{ | |||
use BlameableTrait; | |||
use DevAliasTrait; | |||
use TimestampableTrait; | |||
} |
@@ -1,19 +0,0 @@ | |||
<?php | |||
namespace Lc\SovBundle\Entity\Translation; | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Gedmo\Translatable\Entity\MappedSuperclass\AbstractTranslation; | |||
/** | |||
* @ORM\Table(name="lc_translations_entity", indexes={ | |||
* @ORM\Index(name="entity_translation_idx", columns={"locale", "object_class", "field", "foreign_key"}) | |||
* }) | |||
* @ORM\Entity(repositoryClass="Lc\SovBundle\Repository\BaseRepository") | |||
*/ | |||
class EntityTranslation extends AbstractTranslation | |||
{ | |||
//put your code here | |||
} |
@@ -8,8 +8,8 @@ use EasyCorp\Bundle\EasyAdminBundle\Event\AfterCrudActionEvent; | |||
use EasyCorp\Bundle\EasyAdminBundle\Event\BeforeCrudActionEvent; | |||
use EasyCorp\Bundle\EasyAdminBundle\Event\BeforeEntityPersistedEvent; | |||
use Gedmo\Translatable\TranslatableListener; | |||
use Lc\SovBundle\IModel\Translation\TranslatableInterface; | |||
use Lc\SovBundle\Manager\EntityManager; | |||
use Lc\SovBundle\Doctrine\Extension\TranslatableInterface; | |||
use Lc\SovBundle\Doctrine\EntityManager; | |||
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |||
use function Symfony\Component\Translation\t; | |||
@@ -4,8 +4,8 @@ namespace Lc\SovBundle\Form\Type; | |||
use Lc\SovBundle\DataTransformer\FileManagerTypeToDataTransformer; | |||
use Lc\SovBundle\Entity\File\File; | |||
use Lc\SovBundle\IModel\Cms\FileInterface; | |||
use Lc\SovBundle\Manager\EntityManager; | |||
use Lc\SovBundle\Doctrine\Extension\FileInterface; | |||
use Lc\SovBundle\Doctrine\EntityManager; | |||
use Symfony\Component\Form\AbstractType; | |||
use Symfony\Component\Form\DataTransformerInterface; | |||
use Symfony\Component\Form\Extension\Core\Type\HiddenType; |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\SovBundle\IModel\Cms; | |||
interface DevAliasInterface | |||
{ | |||
} |
@@ -1,10 +0,0 @@ | |||
<?php | |||
namespace Lc\SovBundle\IModel\Cms; | |||
interface SeoInterface | |||
{ | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\SovBundle\IModel\Cms; | |||
interface SluggableInterface | |||
{ | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\SovBundle\IModel\Cms; | |||
interface SortableInterface | |||
{ | |||
} |
@@ -1,8 +0,0 @@ | |||
<?php | |||
namespace Lc\SovBundle\IModel\Cms; | |||
interface StatusInterface | |||
{ | |||
} |
@@ -1,69 +0,0 @@ | |||
<?php | |||
namespace Lc\SovBundle\Model\Cms; | |||
use Lc\SovBundle\IModel\Cms\BlameableInterface; | |||
use Lc\SovBundle\IModel\Cms\DevAliasInterface; | |||
use Lc\SovBundle\IModel\Cms\SeoInterface; | |||
use Lc\SovBundle\IModel\Cms\SluggableInterface; | |||
use Lc\SovBundle\IModel\Cms\SortableInterface; | |||
use Lc\SovBundle\IModel\Cms\TimestampableInterface; | |||
use Lc\SovBundle\IModel\Cms\StatusInterface; | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Gedmo\Mapping\Annotation as Gedmo; | |||
use Lc\SovBundle\IModel\EntityInterface; | |||
/** | |||
* @ORM\MappedSuperclass | |||
*/ | |||
abstract class AbstractDocument implements BlameableInterface, SeoInterface, SluggableInterface, SortableInterface, StatusInterface, TimestampableInterface, DevAliasInterface, EntityInterface | |||
{ | |||
use BlameableTrait; | |||
use SeoTrait; | |||
use SluggableTrait; | |||
use SortableTrait; | |||
use StatusTrait; | |||
use TimestampableTrait; | |||
use DevAliasTrait; | |||
/** | |||
* @Gedmo\Translatable | |||
* @ORM\Column(type="string", length=255) | |||
*/ | |||
protected $title; | |||
/** | |||
* @Gedmo\Translatable | |||
* @ORM\Column(type="text", nullable=true) | |||
*/ | |||
protected $description; | |||
public function getTitle(): ?string | |||
{ | |||
return $this->title; | |||
} | |||
public function setTitle(string $title): self | |||
{ | |||
$this->title = $title; | |||
return $this; | |||
} | |||
public function getDescription(): ?string | |||
{ | |||
return $this->description; | |||
} | |||
public function setDescription(?string $description): self | |||
{ | |||
$this->description = $description; | |||
return $this; | |||
} | |||
} |
@@ -1,27 +1,23 @@ | |||
<?php | |||
namespace Lc\SovBundle\Model\Cms; | |||
namespace Lc\SovBundle\Model\File; | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Gedmo\Mapping\Annotation as Gedmo; | |||
use Lc\SovBundle\IModel\Cms\BlameableInterface; | |||
use Lc\SovBundle\IModel\Cms\DevAliasInterface; | |||
use Lc\SovBundle\IModel\Cms\SortableInterface; | |||
use Lc\SovBundle\IModel\Cms\TimestampableInterface; | |||
use Lc\SovBundle\IModel\EntityInterface; | |||
use Lc\SovBundle\IModel\Translation\TranslatableInterface; | |||
use Lc\SovBundle\Model\Cms\BlameableTrait; | |||
use Lc\SovBundle\Model\Cms\DevAliasTrait; | |||
use Lc\SovBundle\Model\Cms\SortableTrait; | |||
use Lc\SovBundle\Model\Cms\TimestampableTrait; | |||
use Lc\SovBundle\Model\Translation\TranslatableTrait; | |||
use Lc\SovBundle\Entity\Translation\EntityTranslation; | |||
use Lc\SovBundle\Doctrine\EntityInterface; | |||
use Lc\SovBundle\Doctrine\Extension\BlameableInterface; | |||
use Lc\SovBundle\Doctrine\Extension\BlameableTrait; | |||
use Lc\SovBundle\Doctrine\Extension\DevAliasInterface; | |||
use Lc\SovBundle\Doctrine\Extension\DevAliasTrait; | |||
use Lc\SovBundle\Doctrine\Extension\SortableInterface; | |||
use Lc\SovBundle\Doctrine\Extension\SortableTrait; | |||
use Lc\SovBundle\Doctrine\Extension\TimestampableInterface; | |||
use Lc\SovBundle\Doctrine\Extension\TimestampableTrait; | |||
use Lc\SovBundle\Doctrine\Extension\TranslatableInterface; | |||
use Lc\SovBundle\Doctrine\Extension\TranslatableTrait; | |||
/** | |||
* @Gedmo\TranslationEntity (class=EntityTranslation::class) | |||
*/ | |||
abstract class File implements SortableInterface, BlameableInterface, TimestampableInterface, TranslatableInterface, DevAliasInterface, EntityInterface | |||
abstract class File implements SortableInterface, BlameableInterface, TimestampableInterface, TranslatableInterface, | |||
DevAliasInterface, EntityInterface | |||
{ | |||
use DevAliasTrait; | |||
use BlameableTrait; |
@@ -1,6 +1,6 @@ | |||
<?php | |||
namespace Lc\SovBundle\IModel\Cms; | |||
namespace Lc\SovBundle\Model\File; | |||
interface FileInterface | |||
{ |
@@ -3,7 +3,7 @@ | |||
namespace Lc\SovBundle\Model\User; | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Lc\SovBundle\IModel\EntityInterface; | |||
use Lc\SovBundle\Doctrine\EntityInterface; | |||
use Symfony\Component\Security\Core\User\UserInterface; | |||
/** |
@@ -1,6 +1,6 @@ | |||
<?php | |||
namespace Lc\SovBundle\IModel\User; | |||
namespace Lc\SovBundle\Model\User; | |||
interface UserInterface | |||
{ |
@@ -25,7 +25,7 @@ Si tu démarres un nouveau projet il te suffit de cloner le projet : https://git | |||
orm: | |||
resolve_target_entities: | |||
Lc\SovBundle\IModel\User\UserInterface: App\Entity\User | |||
Lc\SovBundle\IModel\Cms\FileInterface: App\Entity\File | |||
Lc\SovBundle\Doctrine\Extension\FileInterface: App\Entity\File | |||
#... | |||
``` | |||
@@ -156,7 +156,7 @@ artgris_file_manager: | |||
namespace App\Entity; | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Lc\SovBundle\IModel\User\UserInterface; | |||
use Lc\SovBundle\Model\User\UserInterface; | |||
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; | |||
use Lc\SovBundle\Model\User\User as LcUserModel; | |||
@@ -183,7 +183,7 @@ artgris_file_manager: | |||
```` | |||
- Modifier les entités pour que les Use pointe dans AdminBundle exemple avec `Entity/Page.php`. | |||
```` | |||
use Lc\SovBundle\IModel\Cms\ImageInterface; | |||
use Lc\SovBundle\Doctrine\Extension\ImageInterface; | |||
use Lc\SovBundle\Model\Cms\AbstractDocument; | |||
use Lc\SovBundle\Model\Cms\ImageTrait; | |||
@@ -206,7 +206,7 @@ artgris_file_manager: | |||
namespace App\Repository; | |||
use App\Entity\Page; | |||
use Lc\SovBundle\Repository\BaseRepository; | |||
use Lc\SovBundle\Repository\RepositoryAbstract; | |||
/** | |||
* @method Page|null find($id, $lockMode = null, $lockVersion = null) | |||
@@ -214,7 +214,7 @@ artgris_file_manager: | |||
* @method Page[] findAll() | |||
* @method Page[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||
*/ | |||
class PageRepository extends BaseRepository | |||
class PageRepository extends RepositoryAbstract | |||
{ | |||
public function getInterfaceClass() | |||
{ |
@@ -1,16 +1,16 @@ | |||
<?php | |||
namespace Lc\SovBundle\Repository\Cms; | |||
namespace Lc\SovBundle\Repository\File; | |||
use Lc\SovBundle\IModel\Cms\FileInterface; | |||
use Lc\SovBundle\Repository\BaseRepository; | |||
use Lc\SovBundle\Doctrine\Extension\FileInterface; | |||
use Lc\SovBundle\Repository\RepositoryAbstract; | |||
/** | |||
* @method FileInterface|null find($id, $lockMode = null, $lockVersion = null) | |||
* @method FileInterface|null findOneBy(array $criteria, array $orderBy = null) | |||
* @method FileInterface[] findAll() | |||
* @method FileInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||
*/ | |||
class FileRepository extends BaseRepository | |||
class FileRepository extends RepositoryAbstract | |||
{ | |||
public function getInterfaceClass() | |||
{ |
@@ -9,9 +9,10 @@ use Doctrine\ORM\EntityRepository; | |||
use Doctrine\ORM\Query; | |||
use Doctrine\ORM\QueryBuilder; | |||
use Gedmo\Translatable\TranslatableListener; | |||
use Lc\SovBundle\IModel\Cms\StatusInterface; | |||
use Lc\SovBundle\Doctrine\Extension\StatusInterface; | |||
abstract class BaseRepository extends EntityRepository implements ServiceEntityRepositoryInterface, BaseRepositoryInterface | |||
abstract class RepositoryAbstract extends EntityRepository implements ServiceEntityRepositoryInterface, | |||
RepositoryAbstractInterface | |||
{ | |||
protected $defaultLocale; |
@@ -3,7 +3,7 @@ | |||
namespace Lc\SovBundle\Repository; | |||
interface BaseRepositoryInterface | |||
interface RepositoryAbstractInterface | |||
{ | |||
/** |
@@ -4,8 +4,8 @@ namespace Lc\SovBundle\Repository\User; | |||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||
use Doctrine\Persistence\ManagerRegistry; | |||
use Lc\SovBundle\IModel\User\UserInterface; | |||
use Lc\SovBundle\Repository\BaseRepository; | |||
use Lc\SovBundle\Model\User\UserInterface; | |||
use Lc\SovBundle\Repository\RepositoryAbstract; | |||
use Symfony\Component\Security\Core\Exception\UnsupportedUserException; | |||
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface; | |||
use Symfony\Component\Security\Core\User\UserInterface as SfUserInterface; | |||
@@ -16,7 +16,7 @@ use Symfony\Component\Security\Core\User\UserInterface as SfUserInterface; | |||
* @method UserInterface[] findAll() | |||
* @method UserInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||
*/ | |||
class UserRepository extends BaseRepository implements PasswordUpgraderInterface | |||
class UserRepository extends RepositoryAbstract implements PasswordUpgraderInterface | |||
{ | |||
public function getInterfaceClass() | |||
{ |