Project

General

Profile

Actions

Feature #25345

closed

Refactoring of localconf.php

Added by Xavier Perseguers over 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-03-16
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

localconf.php is a big flat configuration file. We have a marker to separate "static" part (at the beginning) and dynamically generated/managed (through install tool / EM) at the end.

However in some situations it would be useful to be able to have static configuration at the end too.

Moreover, adding or removing extensions is a pain because it forces us (or the underlying tool) to manipulate a comma-separated list of extension keys. This could be replaced by some clever array instead.

Idea from Steffen Kamper would be to have static methods (or singleton configuration class methods) provided to manipulate the configuration. E.g.,

$GLOBALS['T3_CONFIG']->loadExtension('realurl');
$GLOBALS['T3_CONFIG']->getDatabaseConfiguration()->setUsername('db-username');

Speed and caching should be taken into account to prevent slowing down the whole instantiation process.
(issue imported from #M17972)

Actions #1

Updated by Xavier Perseguers over 13 years ago

  • Target version deleted (4.6.0-beta1)
Actions #2

Updated by Georg Ringer almost 10 years ago

  • Status changed from New to Resolved

in the meantime LocalConfiguration is a nice array.

Actions #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF