Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mautic.corals.io/app/bundles/CoreBundle/Loader/EnvVars/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mautic.corals.io/app/bundles/CoreBundle/Loader/EnvVars/SAMLEnvVars.php
<?php

namespace Mautic\CoreBundle\Loader\EnvVars;

use Symfony\Component\HttpFoundation\ParameterBag;

class SAMLEnvVars implements EnvVarsInterface
{
    public static function load(ParameterBag $config, ParameterBag $defaultConfig, ParameterBag $envVars): void
    {
        if ($entityId = $config->get('saml_idp_entity_id')) {
            $envVars->set('MAUTIC_SAML_ENTITY_ID', $entityId);
        } elseif ($siteUrl = $config->get('site_url')) {
            $parts  = parse_url($siteUrl);
            $scheme = !empty($parts['scheme']) ? $parts['scheme'] : 'http';
            $envVars->set('MAUTIC_SAML_ENTITY_ID', $scheme.'://'.$parts['host']);
        } else {
            $envVars->set('MAUTIC_SAML_ENTITY_ID', 'mautic');
        }

        $samlEnabled = (bool) $config->get('saml_idp_metadata');

        $envVars->set('MAUTIC_SAML_LOGIN_PATH', $samlEnabled ? '/s/saml/login' : '/s/login');
        $envVars->set('MAUTIC_SAML_LOGIN_CHECK_PATH', $samlEnabled ? '/s/saml/login_check' : '/s/login_check');
    }
}

Spamworldpro Mini