Merge pull request #17316 from agh1/ab-test-flask-icon
[civicrm-core.git] / extern / soap.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
6b7eb9df 4 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 5 | |
6b7eb9df
TO
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
6a488035 9 +--------------------------------------------------------------------+
d25dd0ee 10 */
6a488035 11
ba1e1ab6 12if (defined('PANTHEON_ENVIRONMENT')) {
2af2cd60 13 ini_set('session.save_handler', 'files');
14}
6a488035
TO
15session_start();
16
17require_once '../civicrm.config.php';
18require_once 'CRM/Core/Config.php';
19
20$server = new SoapServer(NULL,
21 array(
22 'uri' => 'urn:civicrm',
23 'soap_version' => SOAP_1_2,
24 )
25);
26
27
28require_once 'CRM/Utils/SoapServer.php';
29$crm_soap = new CRM_Utils_SoapServer();
30
31/* Cache the real UF, override it with the SOAP environment */
32
d523d24a 33$civicrmConfig = CRM_Core_Config::singleton();
6a488035 34
d523d24a 35$server->setClass('CRM_Utils_SoapServer', $civicrmConfig->userFrameworkClass);
6a488035
TO
36
37$server->setPersistence(SOAP_PERSISTENCE_SESSION);
38
39$server->handle();