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

ICanBoogie / bind-symfony-dependency-injection / 4267329321

pending completion
4267329321

push

github

Olivier Laviale
ContainerProxy constructor is now private

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

66 of 124 relevant lines covered (53.23%)

3.52 hits per line

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

62.5
/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
            ContainerProxy::from($event->app)
×
26
        );
×
27
    }
28

29
    public static function on_clear_cache(Application\ClearCacheEvent $event): void
30
    {
31
        $pathname = (string) ContainerPathname::from($event->app);
1✔
32

33
        if (!file_exists($pathname)) {
1✔
34
            return;
1✔
35
        }
36

37
        unlink($pathname);
1✔
38

39
        $event->cleared("container ($pathname)");
1✔
40
    }
41
}
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