# Bootstrap

Bootstrap Class

***

* Full name: `\Linchpin_SatisPress\Core\Bootstrap`

## Properties

### controllers

Contains all the controller instances.

```php
private array $controllers
```

***

## Methods

### run

Starts the plugin on plugins_loaded hook.

```php
public run(): void
```

***

### load_textdomain

Loads the plugin's textdomain for translation.

```php
public load_textdomain(): void
```

***

### load_controllers

Instantiates all plugin's Controller classes
Excludes Interfaces which have an _Interface prefix

```php
private load_controllers(): void
```

***

### register_actions

Register all the hooks/filters for each controller

```php
private register_actions(): void
```

***

### get_controller

Returns an instance of the given controller name.

```php
public get_controller(string $name): object
```

**Parameters:**

| Parameter | Type       | Description             |
|-----------|------------|-------------------------|
| `$name`   | **string** | Name of the controller. |

**Throws:**

Exception thrown if controller doesn't exist.
- [`Exception`](../../Exception)

***
