Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed Jun 27, 2023
1 parent 6095431 commit 763b544
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Classes/Common/Doc.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

namespace Kitodo\Dlf\Common;

use Kitodo\Dlf\Domain\Repository\MetadataRepository;
use Kitodo\Dlf\Domain\Repository\StructureRepository;
use TYPO3\CMS\Core\Cache\CacheManager;
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
use TYPO3\CMS\Core\Database\ConnectionPool;
Expand Down Expand Up @@ -314,6 +316,32 @@ abstract class Doc
*/
protected $xml;

/**
* @var MetadataRepository
*/
protected $metadataRepository;

/**
* @var StructureRepository
*/
protected $structureRepository;

/**
* @param MetadataRepository $metadataRepository
*/
public function injectMetadataRepository(MetadataRepository $metadataRepository)
{
$this->metadataRepository = $metadataRepository;
}

/**
* @param StructureRepository $structureRepository
*/
public function injectStructureRepository(StructureRepository $structureRepository)
{
$this->structureRepository = $structureRepository;
}

/**
* This clears the static registry to prevent memory exhaustion
*
Expand Down

0 comments on commit 763b544

Please sign in to comment.