phpbb / epv

Extension Pre-Validator
GNU General Public License v2.0
9 stars 17 forks source link

Allow _defaults declaration under services #105

Closed iMattPro closed 2 years ago

iMattPro commented 2 years ago

Some extension developers are starting to use Autowiring. That requires a _defaults declaration under services:

services:
    _defaults:
        autowire: true

This change will serve to allow that, and prevent the following false error:

Warning: The service name should start with vendor.namespace (which is vendorname.extensionname) but started
with _defaults in /vendorname/extensionname/config/services.yml

Also there are some additional code improvements and error message corrections in this test.