如何打破长autowire排除glob

时间:2018-02-20 09:14:32

标签: php symfony service dependency-injection bundle

我在services.yml中有下一行:

services:
    _defaults:
         autowire: true
         autoconfigure: false

    AppBundle\CompanyInfo\:
        resource: '../../../src/AppBundle/CompanyInfo/*'
        # TODO: Find how to break this line.
        exclude: '../../../src/AppBundle/CompanyInfo/**/{Company.php,CompanyAddress.php,MultipleCompanyAttributesParserDecorator.php,Executive.php,Person.php,ForeignCompanyFounder.php,PersonFounder.php,RussianCompanyFounder.php,EconomicActivity.php,EconomicActivityInfo.php}'

如何将排除glob分解为多行?

我需要这样的东西(不起作用):

exclude: >
    ../../../src/AppBundle/CompanyInfo/**/{Company.php,
    CompanyAddress.php,
    MultipleCompanyAttributesParserDecorator.php,
    Executive.php,
    Person.php,
    ForeignCompanyFounder.php,
    PersonFounder.php,
    RussianCompanyFounder.php,
    EconomicActivity.php,
    EconomicActivityInfo.php}

0 个答案:

没有答案