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

ICanBoogie / bind-symfony-dependency-injection / 4257104880

pending completion
4257104880

push

github

Olivier Laviale
Use PHPUnit 10

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

110 of 124 relevant lines covered (88.71%)

4.19 hits per line

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

45.45
/lib/EventCallbacks.php
1
<?php
2

3
/*
4
 * This file is part of the ICanBoogie package.
5
 *
6
 * (c) Olivier Laviale <olivier.laviale@gmail.com>
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
namespace ICanBoogie\Binding\SymfonyDependencyInjection;
13

14
use ICanBoogie\Application;
15
use ICanBoogie\Service\ServiceProvider;
16

17
use function file_exists;
18
use function unlink;
19

20
final class EventCallbacks
21
{
22
    public static function on_boot(Application\BootEvent $event): void
23
    {
24
        ServiceProvider::define(
×
25
            new ContainerProxy(
×
26
                $event->app,
×
27
                $event->app->config_for_class(Config::class)
×
28
            )
×
29
        );
×
30
    }
31

32
    public static function on_clear_cache(Application\ClearCacheEvent $event): void
33
    {
34
        $pathname = ContainerPathname::from($event->app);
1✔
35

36
        if (!file_exists($pathname)) {
1✔
37
            return;
1✔
38
        }
39

40
        unlink($pathname);
1✔
41

42
        $event->cleared("container ($pathname)");
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

© 2025 Coveralls, Inc