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

zfegg / psr-mvc / 6174499731

13 Sep 2023 03:19PM UTC coverage: 94.545% (-2.1%) from 96.623%
6174499731

Pull #20

github

web-flow
Merge f52f20a15 into 63d3fcb42
Pull Request #20: Remove factories, use `laminas/lamians-di` instead.

14 of 14 new or added lines in 3 files covered. (100.0%)

832 of 880 relevant lines covered (94.55%)

6.16 hits per line

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

75.0
/src/Container/CallbackHandlerAbstractFactory.php
1
<?php
2

3
declare(strict_types = 1);
4

5
namespace Zfegg\PsrMvc\Container;
6

7
use Interop\Container\ContainerInterface;
8
use Laminas\ServiceManager\Factory\AbstractFactoryInterface;
9
use Zfegg\PsrMvc\CallbackHandlerFactory;
10

11
class CallbackHandlerAbstractFactory implements AbstractFactoryInterface
12
{
13
    /**
14
     * @inheritDoc
15
     */
16
    public function canCreate(ContainerInterface $container, $requestedName)
17
    {
18
        if ($requestedName === CallbackHandlerFactory::class) {
1✔
19
            return false;
×
20
        }
21
        return $container->get(CallbackHandlerFactory::class)->exists($requestedName);
1✔
22
    }
23

24
    /**
25
     * @inheritDoc
26
     */
27
    public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
28
    {
29
        return $container->get(CallbackHandlerFactory::class)->create($requestedName);
1✔
30
    }
31
}
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

© 2025 Coveralls, Inc