Changeset 2372 for sandbox/workflow/trunk/inc/nano
- Timestamp:
- 03/29/10 14:46:01 (15 years ago)
- Location:
- sandbox/workflow/trunk/inc/nano
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/trunk/inc/nano/NanoController.class.php
r795 r2372 59 59 function __construct() 60 60 { 61 $this->_mObjJsonConverter = new NanoJsonConverter();62 $this->_mObjJson = new Services_JSON();61 $this->_mObjJsonConverter = &Factory::newInstance('NanoJsonConverter'); 62 $this->_mObjJson = &Factory::newInstance('Services_JSON'); 63 63 } 64 64 … … 130 130 public function iterateOverVirtualRequests() 131 131 { 132 $this->_mObjNanoRequest = new NanoRequest($this->_mStrClassPath, $this->_mStrClassSuffix, $this->_mStrClassPreffix );132 $this->_mObjNanoRequest = &Factory::newInstance('NanoRequest', $this->_mStrClassPath, $this->_mStrClassSuffix, $this->_mStrClassPreffix ); 133 133 $return_data = array(); 134 134 -
sandbox/workflow/trunk/inc/nano/NanoGuardian.class.php
r795 r2372 32 32 public function __construct() 33 33 { 34 $this->_mObjNanoSanitizer = new NanoSanitizer(new DummyLogger);34 $this->_mObjNanoSanitizer = &Factory::newInstance('NanoSanitizer', new DummyLogger); 35 35 } 36 36 -
sandbox/workflow/trunk/inc/nano/NanoJsonConverter.class.php
r795 r2372 118 118 // initialize JSON object 119 119 $this->_mObjJson = ( strtolower($return_type) != 'object' ) 120 ? new Services_JSON(SERVICES_JSON_LOOSE_TYPE )121 : new Services_JSON();120 ? Factory::getInstance('Services_JSON', SERVICES_JSON_LOOSE_TYPE ) 121 : Factory::getInstance('Services_JSON'); 122 122 } 123 123
Note: See TracChangeset
for help on using the changeset viewer.