Fix broken path resolution when Drupal bootstrapped outside app root

Created on 4 August 2017, over 7 years ago
Updated 18 April 2024, 12 months ago

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.

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated about 18 hours ago

Created by

πŸ‡³πŸ‡±Netherlands JvE

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024