1

I have next lines in 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}'

How can I break exclude glob to multiple lines?

I need something like this (doesn't work):

exclude: >
    ../../../src/AppBundle/CompanyInfo/**/{Company.php,
    CompanyAddress.php,
    MultipleCompanyAttributesParserDecorator.php,
    Executive.php,
    Person.php,
    ForeignCompanyFounder.php,
    PersonFounder.php,
    RussianCompanyFounder.php,
    EconomicActivity.php,
    EconomicActivityInfo.php}
Imanali Mamadiev
  • 2,604
  • 2
  • 15
  • 23
peresmeshnik
  • 215
  • 1
  • 3
  • 7
  • Can you try to set only two spaces before each line of your string? – goto Feb 20 '18 at 09:31
  • Possible duplicate of [In YAML, how do I break a string over multiple lines?](https://stackoverflow.com/questions/3790454/in-yaml-how-do-i-break-a-string-over-multiple-lines) – goto Feb 20 '18 at 09:34
  • You say that the `>` operator doesn’t work for you, can you give us an error message? – lxg Feb 20 '18 at 09:37

0 Answers0