# `PhoenixKit.Install.ApplicationSupervisor`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.111/lib/phoenix_kit/install/application_supervisor.ex#L1)

Installation helper for adding PhoenixKit supervisor to parent application.
Used by `mix phoenix_kit.install` task.

## Important

PhoenixKit.Supervisor MUST start AFTER the Ecto Repo because it depends on
the database for loading Settings cache and OAuth configuration.

Incorrect order (will crash):
```elixir
children = [
  PhoenixKit.Supervisor,  # ❌ Tries to read Settings from DB
  MyApp.Repo              # ⚠️ DB not ready yet!
]
```

Correct order:
```elixir
children = [
  MyApp.Repo,             # ✅ Start DB first
  PhoenixKit.Supervisor   # ✅ Then PhoenixKit
]
```

# `add_supervisor`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
