namibia
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
34
35
36
|
<?php
/**
* This makes our life easier when dealing with paths. Everything is relative
* to the application root now.
*/
chdir(dirname(dirname(dirname(__DIR__))));
// Setup autoloading
require 'init_autoloader.php';
// Run the application!
Zend\Mvc\Application::init(require 'config/application.config.php');
$default_config = new \Zend\Config\Config(array(
"production" => false,
"directories" => array('module/Workspace/src/Workspace/Amf')
), true);
$production = false;
$server = new ZendAmf\Server();
$server->setProduction($production);
$server->setClass('Workspace\Amf\Moo', 'Moo');
$server->setClass('Workspace\Amf\Workspace', 'Workspace');
if (!$production)
{
$server->setClass('ZendAmf\Adobe\Introspector', 'Zend_Amf_Adobe_Introspector',
array("config" => $default_config));
$server->setClass('ZendAmf\Adobe\DbInspector', 'Zend_Amf_Adobe_DbInspector',
array("config" => $default_config));
}
//var_dump($server->getFunctions());
//exit();
echo $server->handle();
|
Revision |
Author |
Commited |
Message |
df0489 ...
|
Mark |
Fri 14 Oct, 2016 10:01:00 +0000 |
|