Zum Inhalt springen

API reference / Quittio \ Country \ DE \ Laravel

GermanyServiceProvider

final class in quittio/country-de · extends Illuminate\Support\ServiceProvider

Quittio\Country\DE\Laravel\GermanyServiceProvider · Source

Laravel integration of the German country pack (discovered automatically): the base rates of quittio.countries.de.base_rates and of the file written by quittio:base-rate:update are registered with BaseRates, so that DefaultInterest uses them.

The configuration of the pack is quittio.countries.de: config/quittio/countries/de.php (tag quittio-de-config) or the section 'de' of 'countries' in config/quittio.php. The key quittio-de (config/quittio-de.php) of 0.3 is still read until 1.0, with a deprecation.

Constants#

ConstantValueDescription
CONFIG_KEY'quittio.countries.de'Configuration key of the pack.

Methods#

MethodDescription
->boot()Registers the configured and the updated base rates, the command and the publishable configuration.
::readFile()
->register()Merges the defaults of the pack (and the keys of config/quittio-de.php) into quittio.countries.de.
::registerBaseRates()Registers the rates of the file and then those of the configuration (which win).

boot()#

public function boot(): void

Registers the configured and the updated base rates, the command and the publishable configuration.

readFile()#

public static function readFile(string $file): array<array-key, mixed>

static

ParameterTypeDescription
$filestring
Returns
array<array-key, mixed>

register()#

public function register(): void

Merges the defaults of the pack (and the keys of config/quittio-de.php) into quittio.countries.de.

registerBaseRates()#

public static function registerBaseRates(Repository $config): void

static

Registers the rates of the file and then those of the configuration (which win).

ParameterTypeDescription
$configIlluminate\Contracts\Config\Repository

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.