# give/4.16.9/src/VendorOverrides/Validation/ValidationServiceProvider.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 33 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/VendorOverrides/Validation/ValidationServiceProvider.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/VendorOverrides/Validation/ValidationServiceProvider.php
- Modified: 2023-01-18T19:19:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.9/code/src/VendorOverrides/Validation/ValidationServiceProvider.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Give\VendorOverrides\Validation;

use Give\Framework\Exceptions\Primitives\InvalidArgumentException;
use Give\ServiceProviders\ServiceProvider as ServiceProviderContract;
use Give\VendorOverrides\Validation\Exceptions\ValidationException;
use Give\Vendors\StellarWP\Validation\Config;

class ValidationServiceProvider implements ServiceProviderContract
{
    /**
     * @inheritDoc
     */
    public function register()
    {
        Config::setServiceContainer(give()->getContainer());
        Config::setHookPrefix('givewp_');
        Config::setInvalidArgumentExceptionClass(InvalidArgumentException::class);
        Config::setValidationExceptionClass(ValidationException::class);
        Config::initialize();
    }

    /**
     * @inheritDoc
     */
    public function boot()
    {
    }
}

```
