Bootstrap Class
- Full name:
\Linchpin_SatisPress\Core\Bootstrap
Properties
controllers
Contains all the controller instances.
private array $controllers
Methods
run
Starts the plugin on plugins_loaded hook.
public run(): void
load_textdomain
Loads the plugin's textdomain for translation.
public load_textdomain(): void
load_controllers
Instantiates all plugin's Controller classes Excludes Interfaces which have an _Interface prefix
private load_controllers(): void
register_actions
Register all the hooks/filters for each controller
private register_actions(): void
get_controller
Returns an instance of the given controller name.
public get_controller(string $name): object
Parameters:
| Parameter | Type | Description |
|---|---|---|
$name | string | Name of the controller. |
Throws:
Exception thrown if controller doesn't exist.