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

# 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`](../../../ExtensionArchitecture/FileStructure/ExtLocalconf.md#file-extension-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@13.4)
to see how you can read these values properly inside your service.
