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

FluidTYPO3 / flux / 12929786239

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

Pull #2209

github

web-flow
Merge 1e194cbc7 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/IconFactoryProxy.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\Imaging\Icon;
12
use TYPO3\CMS\Core\Imaging\IconFactory;
13
use TYPO3\CMS\Core\Imaging\IconSize;
14
use TYPO3\CMS\Core\Imaging\IconState;
15

16
/**
17
 * Final/readonly classes is a great way to give all your developer community users the middle finger.
18
 */
19
class IconFactoryProxy
20
{
21
    private IconFactory $iconFactory;
22

23
    public function __construct(IconFactory $iconFactory)
24
    {
NEW
25
        $this->iconFactory = $iconFactory;
×
26
    }
27

28
    /**
29
     * @param string|IconSize $size
30
     * @param \TYPO3\CMS\Core\Type\Icon\IconState|IconState|null $state
31
     */
32
    public function getIcon(
33
        string $identifier,
34
        $size,
35
        ?string $overlayIdentifier = null,
36
        $state = null
37
    ): Icon {
NEW
38
        return $this->iconFactory->getIcon($identifier, $size, $overlayIdentifier, $state);
×
39
    }
40
}
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