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

contributte / di / 4912994209

pending completion
4912994209

push

github

Milan Felix Ć ulc
Tests: fix exception matching (number in exception message can vary)

122 of 148 relevant lines covered (82.43%)

0.82 hits per line

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

100.0
/src/Extension/MutableExtension.php
1
<?php declare(strict_types = 1);
2

3
namespace Contributte\DI\Extension;
4

5
use Nette\DI\CompilerExtension;
6
use Nette\PhpGenerator\ClassType;
7
use Nette\SmartObject;
8

9
final class MutableExtension extends CompilerExtension
10
{
11

12
        use SmartObject;
13

14
        /** @var callable[] function (MutableExtension $extension, \Nette\DI\ContainerBuilder $builder, array $config); */
15
        public $onLoad = [];
16

17
        /** @var callable[] function (MutableExtension $extension, \Nette\DI\ContainerBuilder $builder, array $config); */
18
        public $onBefore = [];
19

20
        /** @var callable[] function (MutableExtension $extension, ClassType $class, array $config); */
21
        public $onAfter = [];
22

23
        /**
24
         * Register services
25
         */
26
        public function loadConfiguration(): void
27
        {
28
                $this->onLoad($this, $this->getContainerBuilder(), $this->getConfig());
1✔
29
        }
1✔
30

31
        /**
32
         * Decorate services
33
         */
34
        public function beforeCompile(): void
35
        {
36
                $this->onBefore($this, $this->getContainerBuilder(), $this->getConfig());
1✔
37
        }
1✔
38

39
        public function afterCompile(ClassType $class): void
1✔
40
        {
41
                $this->onAfter($this, $class, $this->getConfig());
1✔
42
        }
1✔
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