Traits

HasSettings

v1.0.0

Provides a $settings property and automatic injection from the container.

Example

has-settings.php
use Meteorack\SDK\Traits\HasSettings;

class My_Module implements ModuleInterface {
    use HasSettings;

    public function boot(): void {
        $value = $this->settings->get('my_key');
    }
}