Merge pull request #22525 from braders/remove-charts-colours
[civicrm-core.git] / extern / soap.php
... / ...
CommitLineData
1<?php
2/*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
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 |
9 +--------------------------------------------------------------------+
10 */
11
12if (defined('PANTHEON_ENVIRONMENT')) {
13 ini_set('session.save_handler', 'files');
14}
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
33$civicrmConfig = CRM_Core_Config::singleton();
34
35$server->setClass('CRM_Utils_SoapServer', $civicrmConfig->userFrameworkClass);
36
37$server->setPersistence(SOAP_PERSISTENCE_SESSION);
38
39$server->handle();