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

mimmi20 / navigation-helper-htmlify / 14166459531

31 Mar 2025 07:36AM UTC coverage: 100.0%. First build
14166459531

Pull #253

github

web-flow
composer(deps-dev): update symfony/process requirement

Updates the requirements on [symfony/process](https://github.com/symfony/process) to permit the latest version.
- [Release notes](https://github.com/symfony/process/releases)
- [Changelog](https://github.com/symfony/process/blob/7.2/CHANGELOG.md)
- [Commits](https://github.com/symfony/process/compare/v7.2.4...v7.2.5)

---
updated-dependencies:
- dependency-name: symfony/process
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #253: composer(deps-dev): update symfony/process requirement from ^7.2.4 to ^7.2.5

72 of 72 relevant lines covered (100.0%)

7.96 hits per line

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

100.0
/src/HtmlifyFactory.php
1
<?php
2

3
/**
4
 * This file is part of the mimmi20/navigation-helper-htmlify package.
5
 *
6
 * Copyright (c) 2021-2025, Thomas Mueller <mimmi20@live.de>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types = 1);
13

14
namespace Mimmi20\NavigationHelper\Htmlify;
15

16
use Laminas\I18n\View\Helper\Translate;
17
use Laminas\ServiceManager\Factory\FactoryInterface;
18
use Laminas\View\Helper\EscapeHtml;
19
use Laminas\View\HelperPluginManager as ViewHelperPluginManager;
20
use Mimmi20\LaminasView\Helper\HtmlElement\Helper\HtmlElementInterface;
21
use Override;
22
use Psr\Container\ContainerExceptionInterface;
23
use Psr\Container\ContainerInterface;
24

25
use function assert;
26

27
final class HtmlifyFactory implements FactoryInterface
28
{
29
    /**
30
     * Create and return a navigation view helper instance.
31
     *
32
     * @param string            $requestedName
33
     * @param array<mixed>|null $options
34
     *
35
     * @throws ContainerExceptionInterface
36
     *
37
     * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
38
     * @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter
39
     */
40
    #[Override]
2✔
41
    public function __invoke(ContainerInterface $container, $requestedName, array | null $options = null): Htmlify
42
    {
43
        $plugin     = $container->get(ViewHelperPluginManager::class);
2✔
44
        $translator = null;
2✔
45

46
        assert($plugin instanceof ViewHelperPluginManager);
2✔
47

48
        if ($plugin->has(Translate::class)) {
2✔
49
            $translator = $plugin->get(Translate::class);
1✔
50

51
            assert($translator instanceof Translate);
1✔
52
        }
53

54
        $escaper = $plugin->get(EscapeHtml::class);
2✔
55
        $element = $container->get(HtmlElementInterface::class);
2✔
56

57
        assert($escaper instanceof EscapeHtml);
2✔
58
        assert($element instanceof HtmlElementInterface);
2✔
59

60
        return new Htmlify($escaper, $element, $translator);
2✔
61
    }
62
}
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