akeneo/php-coupling-detector

Handle rules of parent nodes in a sub node

jjanvier opened this issue · 0 comments

Example :

$rules = [
    $builder->only([
        'Akeneo\Pim\ApiClient',
        'Akeneo\PimEnterprise\ApiClient',
        'Symfony',
        'Doctrine',
        'PHPUnit',
        'OldSound\RabbitMqBundle',
        'PhpAmqpLib',
        'Psr',
        'Prophecy',
        'JMS\Serializer',
        'Http\Discovery',
        'GuzzleHttp\Psr7',
    ])->in('Smallable\Produit\AkeneoBundle'),
    $builder->only([
        'Smallable\Produit\ProduitBundle\Entity' // this should be possible, and then it should allow to use everything that is in the parent
    ])->in('Smallable\Produit\AkeneoBundle\Migration'),
];