Skip to content

Commit

Permalink
Merge pull request #148 from xerc/master
Browse files Browse the repository at this point in the history
[FIX] t3:13 readonly-class
  • Loading branch information
lochmueller authored Oct 23, 2024
2 parents b89693b + 932ad4d commit 24409ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Classes/Resource/SvgFileRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@
use TYPO3\CMS\Core\Utility\GeneralUtility;

/**
* Class SvgFileRepository extends FileRepository.
* Class SvgFileRepository.
*
* @author Marcus Förster ; https://github.com/xerc
*/
class SvgFileRepository extends \TYPO3\CMS\Core\Resource\FileRepository
class SvgFileRepository
{
/**
* Retrieves all used SVGs within given storage-array.
*/
public function findAllByStorageUids(array $storageUids): array
{
return
($queryBuilder = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Database\ConnectionPool::class)->getQueryBuilderForTable($this->table))
($queryBuilder = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Database\ConnectionPool::class)->getQueryBuilderForTable('sys_file'))
->select('sys_file.storage', 'sys_file.identifier', 'sys_file.sha1')
->from($this->table)
->from('sys_file')
->innerJoin(
'sys_file',
'sys_file_reference',
Expand Down

0 comments on commit 24409ea

Please sign in to comment.