---
title: "Service configuration"
manual: "TYPO3 Explained"
version: "11.5"
permalink: "https://docs.typo3.org/permalink/t3coreapi:services-configuration-service-configuration@11.5"
source: "ApiOverview/Services/Configuration/ServiceConfiguration.rst"
rendered: "2026-10-21T15:30:00+00:00"
---

> [!WARNING]
> **Attention**
>
> TYPO3 v11 has reached end-of-life as of October 31th 2024 and
> is no longer being maintained. Use the version switcher on the top
> left of this page to select documentation for a supported version of TYPO3.
>
> Need more time before upgrading?
> You can purchase Extended Long Term Support (ELTS) for TYPO3 v11 here:
> [TYPO3 ELTS](https://typo3.com/services/extended-support-elts).

# Service configuration {#services-configuration-service-configuration}

Some services will not need additional configuration. Others may have
some options that can be set in the Extension Manager. Yet others may
be configured via local configuration files (`ext_localconf.php` ).
Example:

```php
$GLOBALS['TYPO3_CONF_VARS']['SVCONF']['auth']['tx_example_sv1']['foo'] = 'bar';
```

The general syntax is:

```php
$GLOBALS['TYPO3_CONF_VARS']['SVCONF'][service type][service key][config key] = value;
```

A configuration can also be set for all services belonging to the same
service type by using the keyword "default" instead of a service key:

```php
$GLOBALS['TYPO3_CONF_VARS']['SVCONF'][service type]['default'][config key] = value;
```

The available configuration settings should be described in the
service's documentation. See [Service API](https://docs.typo3.org/permalink/t3coreapi:services-developer-service-api@11.5)
to see how you can read these values properly inside your service.
