index.php 835 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * This file is part of amfPHP
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the license that is bundled
  8. * with this package in the file license.txt.
  9. */
  10. /**
  11. * includes
  12. * @package Amfphp
  13. * */
  14. require_once dirname(__FILE__) . '/ClassLoader.php';
  15. /*
  16. * main entry point (gateway) for service calls. instanciates the gateway class and uses it to handle the call.
  17. *
  18. * @package Amfphp
  19. * @author Ariel Sommeria-klein
  20. */
  21. $gateway = Amfphp_Core_HttpRequestGatewayFactory::createGateway();
  22. //use this to change the current folder to the services folder. Be careful of the case.
  23. //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
  24. //chdir(dirname(__FILE__) . '/Services');
  25. $gateway->service();
  26. $gateway->output();
  27. ?>