Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295035

AutowireTest::testCoreServiceAliases should not check services that are abstract

$
0
0

Problem/Motivation

In #3406482: logger.channel.file and .contact definitions are not consistent with other loggers it became obvious that we have a bug in the ::testCoreServiceAliases test. When we correctly only have one instance of a service with the interface Drupal\Core\Logger\LoggerChannelInterface it fails since it has no alias. The only service left, which then is the one creating the test failure is this:

  logger.channel_base:
    abstract: true

We really should not have to create an alias for that, as people are not supposed to inject it. Nor is it even possible.

Steps to reproduce

Run the tests in the other issue.

Proposed resolution

Avoid requiring abstract services to have an alias

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 295035

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>