# Strapi is a subclass of Container

> Source: https://docs.strapi.io/cms/migration/v4-to-v5/breaking-changes/strapi-container

In Strapi 5, `Strapi` is a subclass of `Container`, allowing you to access container methods directly on the `strapi` object using `strapi.add()` and `strapi.get()` instead of `strapi.container.register()` and `strapi.container.get()`.

In Strapi 5, `Strapi` is a subclass of the `Container` class to make it simpler to access services and unify the service access with one method.

This page is part of the [breaking changes database](/cms/migration/v4-to-v5/breaking-changes) and provides information about the breaking change and additional instructions to migrate from Strapi v4 to Strapi 5.

- Is this breaking change affecting plugins? Yes
- Is this breaking change automatically handled by a codemod? No

## Breaking change description

**In Strapi v4**

Container methods are accessed like follows:

```js
strapi.container.register(....)
strapi.container.get(...)
```

**In Strapi 5**

Container methods are accessed like follows:

```js
strapi.add(....)
strapi.get(...)
```

## Migration

This section regroups useful notes and procedures about the introduced breaking change.

### Manual procedure

Ensure you update your method calls to `container`.
