forked from Dressi/amfphp-2.0
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
33 lines (27 loc) · 835 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* This file is part of amfPHP
*
* LICENSE
*
* This source file is subject to the license that is bundled
* with this package in the file license.txt.
*/
/**
* includes
* @package Amfphp
* */
require_once dirname(__FILE__) . '/ClassLoader.php';
/*
* main entry point (gateway) for service calls. instanciates the gateway class and uses it to handle the call.
*
* @package Amfphp
* @author Ariel Sommeria-klein
*/
$gateway = Amfphp_Core_HttpRequestGatewayFactory::createGateway();
//use this to change the current folder to the services folder. Be careful of the case.
//This was done in 1.9 and can be used to support relative includes, and should be used when upgrading from 1.9 to 2.0 if you use relative includes
//chdir(dirname(__FILE__) . '/Services');
$gateway->service();
$gateway->output();
?>