JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr{ gilour

File "LoggingCredentialsValidator.php"

Full Path: /home/markqprx/iniasli.pro/common-20260222054425/Settings/Validators/LoggingCredentialsValidator.php
File size: 550 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Common\Settings\Validators;

use Exception;
use Sentry\Dsn;

class LoggingCredentialsValidator
{
    const KEYS = ['sentry_dsn'];

    public function fails($settings)
    {
        try {
            Dsn::createFromString($settings['sentry_dsn']);
        } catch (Exception $e) {
            return $this->getErrorMessage($e);
        }
    }

    /**
     * @param Exception $e
     * @return array
     */
    private function getErrorMessage($e)
    {
        return ['logging_group' => 'This sentry DSN is not valid.'];
    }
}