示例#1
0
 /**
  * constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->serviceFolderPaths = array(dirname(__FILE__) . '/Services/', dirname(__FILE__) . '/MoreServices/');
     $this->serviceFolderPaths[] = array(dirname(__FILE__) . '/NamespacedServices/', 'TestNamespace');
     $testServicePath = dirname(__FILE__) . '/TestService.php';
     $classFindInfo = new Amfphp_Core_Common_ClassFindInfo($testServicePath, 'TestService');
     //uncomment to disable baguette amf
     //$this->disabledPlugins[] = 'BaguetteAmf';
     $this->serviceNames2ClassFindInfo = array('TestService' => $classFindInfo);
 }
示例#2
0
 public function __construct(Pixie $pixie)
 {
     parent::__construct();
     $this->pluginsConfig['AmfphpDiscovery']['restrictAccess'] = false;
     $this->serviceFolders = [[dirname(__FILE__) . '/../Services/', '\\AmfphpModule\\Services']];
     $this->pluginsFolders[] = dirname(__FILE__) . '/../Plugins/';
     $this->pluginsConfig['Pixifier']['pixie'] = $pixie;
     $this->pluginsConfig['AmfphpJsonEx']['pixie'] = $pixie;
     $this->pixie = $pixie;
     $this->sharedConfig[\Amfphp_Core_Config::CONFIG_RETURN_ERROR_DETAILS] = !!$pixie->config->get('parameters.display_errors');
     //$this->disabledPlugins[] = 'AmfphpJson';
 }
 /**
  * constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->serviceFolders = array(dirname(__FILE__) . '/Services/', dirname(__FILE__) . '/MoreServices/');
     $this->serviceFolders[] = array(dirname(__FILE__) . '/NamespaceServices/', 'NService');
     $this->serviceFolders[] = dirname(__FILE__) . '/../../Examples/Php/ExampleServices/';
     $testServicePath = dirname(__FILE__) . '/TestService.php';
     $classFindInfo = new Amfphp_Core_Common_ClassFindInfo($testServicePath, 'TestService');
     $this->serviceNames2ClassFindInfo = array('TestService' => $classFindInfo);
     $voFolders = array(AMFPHP_ROOTPATH . 'Services/Vo/', dirname(__FILE__) . '/../../Examples/Php/Vo/');
     $voFolders[] = array(dirname(__FILE__) . '/NamespaceVos/', 'NVo');
     $this->pluginsConfig['AmfphpVoConverter']['voFolders'] = $voFolders;
     //$this->pluginsConfig['AmfphpVoConverter']['enforceConversion'] = true;
     //My tests, shouldn't be in release code!!
     //
     $this->pluginsFolders[] = '/Users/arielsommeria-klein/Documents/workspaces/baguetteamf/BaguetteAMF/amfphp_plugin/';
     //$this->serviceFolders [] = '/Users/arielsommeria-klein/Documents/workspaces/baguetteamf/test/Services/';
 }