class ServiceGridFSRepository extends DefaultGridFSRepository implements ServiceDocumentRepositoryInterface (View source)

Optional GridFSRepository base class with a simplified constructor (for autowiring).

To use in your class, inject the "registry" service and call the parent constructor. For example:

class YourDocumentRepository extends ServiceGridFSRepository { public function __construct(RegistryInterface $registry) { parent::__construct($registry, YourDocument::class); } }

Traits

Methods

__construct(ManagerRegistry $registry, $documentClass)

No description

Details

__construct(ManagerRegistry $registry, $documentClass)

Parameters

ManagerRegistry $registry
$documentClass