• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FluidTYPO3 / flux / 12930151005

23 Jan 2025 01:23PM UTC coverage: 92.829% (-0.07%) from 92.901%
12930151005

Pull #2209

github

web-flow
Merge 510fe665a into cf49f7a79
Pull Request #2209: [WIP] Compatibility with TYPO3 v13

86 of 112 new or added lines in 31 files covered. (76.79%)

5 existing lines in 3 files now uncovered.

7055 of 7600 relevant lines covered (92.83%)

65.02 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/Classes/Proxy/SiteFinderProxy.php
1
<?php
2
namespace FluidTYPO3\Flux\Proxy;
3

4
/*
5
 * This file is part of the FluidTYPO3/Flux project under GPLv2 or later.
6
 *
7
 * For the full copyright and license information, please read the
8
 * LICENSE.md file that was distributed with this source code.
9
 */
10

11
use TYPO3\CMS\Core\Site\Entity\Site;
12
use TYPO3\CMS\Core\Site\SiteFinder;
13

14
/**
15
 * Final/readonly classes are the worst decision in TYPO3 since Neos.
16
 */
17
class SiteFinderProxy
18
{
19
    private SiteFinder $siteFinder;
20

21
    public function __construct(SiteFinder $siteFinder)
22
    {
NEW
23
        $this->siteFinder = $siteFinder;
×
24
    }
25
    public function getAllSites(bool $useCache = true): array
26
    {
NEW
27
        return $this->siteFinder->getAllSites($useCache);
×
28
    }
29

30
    public function getSiteByRootPageId(int $rootPageId): Site
31
    {
NEW
32
        return $this->siteFinder->getSiteByRootPageId($rootPageId);
×
33
    }
34

35
    public function getSiteByIdentifier(string $identifier): Site
36
    {
NEW
37
        return $this->siteFinder->getSiteByIdentifier($identifier);
×
38
    }
39

40
    public function getSiteByPageId(int $pageId, ?array $rootLine = null, ?string $mountPointParameter = null): Site
41
    {
NEW
42
        return $this->siteFinder->getSiteByPageId($pageId, $rootLine, $mountPointParameter);
×
43
    }
44
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc