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

ICanBoogie / bind-symfony-dependency-injection / 4268674362

pending completion
4268674362

push

github

Olivier Laviale
Autoconfig is an object

20 of 30 relevant lines covered (66.67%)

0.8 hits per line

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

50.0
/lib/ServiceAccessor.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

16
/**
17
 * A helper class to define services that are provided as properties on the application.
18
 */
19
final class ServiceAccessor
20
{
21
    public function __construct(
22
        private readonly Application $app
23
    ) {
24
    }
×
25

26
    public function get(string $id): object
27
    {
28
        return $this->app->$id;
2✔
29
    }
30
}
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