Project

General

Profile

Actions

Bug #95647

closed

EXT-dependencies not respected when loading ext_localconf.php

Added by David Bascom over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
System/Bootstrap/Configuration
Target version:
-
Start date:
2021-10-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I have a composer based TYPO3 installation with two extensions: EXT:one and EXT:two.

The extension EXT:one depends on EXT:two. The dependency is defined in the ext_emconf.php.

In the ext_localconf.php of EXT:one I am calling helper-functions / static methods from EXT:two. This throws an error, saying the methods are unknown / not registered, meaning EXT:two is not present / was not loaded when the code in the ext_localconf.php is executed.

In the loading order of the individual ext_localconf.php the alphabetic order of the extensions-folders seems to play a role. No error is thrown, if I rename EXT:one to EXT:zork. "Z" seems to be loaded AFTER "T".

I can fix this issue by adding the dependency to the composer.json of EXT:one:

{
  ...
  "require": {
    "nng/two":"..." 
  }
}

It seems that everything worked fine up till version 11.5

Actions

Also available in: Atom PDF