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

mimmi20 / laminasviewrenderer-bootstrap-form / 9141019878

18 May 2024 03:59PM UTC coverage: 97.314% (-0.2%) from 97.494%
9141019878

push

github

web-flow
Merge pull request #252 from mimmi20/dependabot/composer/master/minor-patch-dependencies-d6842ad1e7

composer(deps-dev): bump the minor-patch-dependencies group with 5 updates

1 of 5 new or added lines in 2 files covered. (20.0%)

2174 of 2234 relevant lines covered (97.31%)

25.53 hits per line

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

0.0
/src/HelperPluginManagerFactory.php
1
<?php
2
/**
3
 * This file is part of the mimmi20/laminasviewrenderer-bootstrap-form package.
4
 *
5
 * Copyright (c) 2021-2024, Thomas Mueller <mimmi20@live.de>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10

11
declare(strict_types = 1);
12

13
namespace Mimmi20\LaminasView\BootstrapForm;
14

15
use Laminas\View\Helper\HelperInterface;
16
use Laminas\View\HelperPluginManager;
17
use Psr\Container\ContainerExceptionInterface;
18
use Psr\Container\ContainerInterface;
19

20
use function assert;
21
use function is_array;
22

23
final class HelperPluginManagerFactory
24
{
25
    /**
26
     * Create an instance of the requested class name.
27
     *
28
     * @param string            $requestedName
29
     * @param array<mixed>|null $options
30
     *
31
     * @return HelperPluginManager<(callable(): mixed)|HelperInterface>
32
     *
33
     * @throws ContainerExceptionInterface
34
     *
35
     * @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter
36
     * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
37
     */
NEW
38
    public function __invoke(
×
39
        ContainerInterface $container,
40
        $requestedName,
41
        array | null $options = null,
42
    ): HelperPluginManager {
NEW
43
        $config = $container->get('config');
×
NEW
44
        assert(is_array($config));
×
45

NEW
46
        return new HelperPluginManager($container, $config['view_helpers'] ?? []);
×
47
    }
48
}
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