---
title: "register(engine:)"
framework: phase
role: symbol
role_heading: Instance Method
path: "phase/phasegroup/register(engine:)"
---

# register(engine:)

Adds the group to the engine’s dictionary.

## Declaration

```swift
func register(engine: PHASEEngine)
```

## Parameters

- `engine`: The engine with which to register this group.

## Discussion

Discussion The function generates an exception if the argument is nil or if engine already contains the group. For more information, see groups.

## See Also

### Defining the Group

- [unregisterFromEngine()](phase/phasegroup/unregisterfromengine().md)
