Configuration_Loader::add( TECCommonConfigurationConfiguration_Provider_Interface $provider )
Add a var provider to the list of providers referenced when accessing a variable from within the Configuration object.
Contents
Parameters
- $provider
-
(TECCommonConfigurationConfiguration_Provider_Interface) (Required)
Return
($this)
Source
File: src/Common/Configuration/Configuration_Loader.php
public function add( Configuration_Provider_Interface $provider ): self {
if ( is_callable( [ $provider, 'register' ] ) ) {
$provider->register();
}
self::$providers[] = $provider;
return $this;
}
Changelog
| Version | Description |
|---|---|
| 5.1.3 | Introduced. |