doyolabs /
code-coverage-bridge
| 1 | <?php |
||
| 2 | |||
| 3 | /* |
||
| 4 | * This file is part of the doyo/code-coverage project. |
||
| 5 | * |
||
| 6 | * (c) Anthonius Munthi <[email protected]> |
||
| 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 | declare(strict_types=1); |
||
| 13 | |||
| 14 | namespace Doyo\Bridge\CodeCoverage\DependencyInjection; |
||
| 15 | |||
| 16 | use Doyo\Bridge\CodeCoverage\Configuration; |
||
| 17 | use Symfony\Component\Config\FileLocator; |
||
|
0 ignored issues
–
show
|
|||
| 18 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
||
|
0 ignored issues
–
show
The type
Symfony\Component\Depend...ection\ContainerBuilder was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 19 | use Symfony\Component\DependencyInjection\Extension\Extension; |
||
|
0 ignored issues
–
show
The type
Symfony\Component\Depend...ion\Extension\Extension was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 20 | use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; |
||
|
0 ignored issues
–
show
The type
Symfony\Component\Depend...on\Loader\XmlFileLoader was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 21 | |||
| 22 | class CodeCoverageExtension extends Extension |
||
| 23 | { |
||
| 24 | public function load(array $configs, ContainerBuilder $container) |
||
| 25 | { |
||
| 26 | $locator = new FileLocator(__DIR__.'/../Resources/config'); |
||
| 27 | $loader = new XmlFileLoader($container, $locator); |
||
| 28 | |||
| 29 | $configuration = $this->processConfiguration(new Configuration(), $configs); |
||
| 30 | |||
| 31 | $container->setParameter('reports', $configuration['reports']); |
||
| 32 | $container->setParameter('config.filter', $configuration['filter']); |
||
| 33 | |||
| 34 | $loader->load('code_coverage.xml'); |
||
| 35 | $loader->load('reports.xml'); |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getAlias() |
||
| 39 | { |
||
| 40 | return 'coverage'; |
||
| 41 | } |
||
| 42 | } |
||
| 43 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths