-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php_cd.php
67 lines (54 loc) · 1.89 KB
/
.php_cd.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
declare(strict_types=1);
use Akeneo\CouplingDetector\Configuration\Configuration;
use Akeneo\CouplingDetector\Configuration\DefaultFinder;
use Akeneo\CouplingDetector\RuleBuilder;
$finder = new DefaultFinder();
$builder = new RuleBuilder();
$finder->files()->name('*.php');
$builder = new RuleBuilder();
$rules = [
/**
* DOMAIN
*/
$builder->only([
'AkeneoDAMConnector\Domain',
])->in('AkeneoDAMConnector\Domain'),
/**
* APPLICATION
*/
$builder->only([
'AkeneoDAMConnector\Application',
'AkeneoDAMConnector\Domain',
])->in('AkeneoDAMConnector\Application'),
/**
* INFRASTRUCTURE
*/
$builder->only([
'AkeneoDAMConnector\Application\DamAdapter',
'AkeneoDAMConnector\Domain',
])->in('AkeneoDAMConnector\Infrastructure\DAM\DamExample'),
$builder->only([
'AkeneoDAMConnector\Application',
'AkeneoDAMConnector\Domain',
'AkeneoDAMConnector\Infrastructure\Persistence',
'Symfony\Component\Console',
])->in('AkeneoDAMConnector\Infrastructure\DAM\Command'),
$builder->only([
'AkeneoDAMConnector\Domain',
'Doctrine\DBAL',
])->in('AkeneoDAMConnector\Infrastructure\Persistence'),
$builder->only([
'AkeneoDAMConnector\Application\Mapping\AssetValueConverterRegistry',
'Symfony\Component\DependencyInjection',
])->in('AkeneoDAMConnector\Infrastructure\DependencyInjection'),
$builder->only([
'AkeneoDAMConnector\Application\PimAdapter',
'AkeneoDAMConnector\Domain',
'Akeneo\Pim\ApiClient\Exception',
'Akeneo\PimEnterprise\ApiClient\Api\AssetManager',
'Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientBuilder',
'Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientInterface',
])->in('AkeneoDAMConnector\Infrastructure\Pim'),
];
return new Configuration($rules, $finder);