Deprecate magic ServiceProvider file discovery; declare in services.yml
Compare changes
Files
31@@ -476,8 +476,8 @@ private function validate($content, $file)
@@ -476,8 +476,8 @@ private function validate($content, $file)
throw new InvalidArgumentException(sprintf('The service file "%s" is not valid. It should contain an array. Check your YAML syntax.', $file));
throw new InvalidArgumentException(sprintf('The service file "%s" is not valid: it contains invalid root key(s) "%s". Services have to be added under "services" and Parameters under "parameters".', $file, implode('", "', $invalid_keys)));