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

Service provider discovery wrong directory

$
0
0

Problem/Motivation

When a DrupalKernel is created with an $app_root it cannot find the service yml files and gives this error:

 [Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
  The service file "core/core.services.yml" is not valid.

While most of the kernel uses the appRoot to find its files, the service provider discovery part does not.

Proposed resolution

Use the appRoot when loading service ymls.


Viewing all articles
Browse latest Browse all 293538

Trending Articles



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