Ignore:
Timestamp:
03/19/10 17:22:08 (14 years ago)
Author:
pedroerp
Message:

Ticket #609 - Migrando instanciação das classes da engine para a factory.

Location:
sandbox/workflow/branches/609/inc/nano
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/branches/609/inc/nano/NanoController.class.php

    r795 r2311  
    5959    function __construct() 
    6060    { 
    61         $this->_mObjJsonConverter = new NanoJsonConverter(); 
    62         $this->_mObjJson          = new Services_JSON(); 
     61        $this->_mObjJsonConverter = &Factory::newInstance('NanoJsonConverter'); 
     62        $this->_mObjJson          = &Factory::newInstance('Services_JSON'); 
    6363    } 
    6464 
     
    130130    public function iterateOverVirtualRequests() 
    131131    { 
    132         $this->_mObjNanoRequest = new NanoRequest( $this->_mStrClassPath, $this->_mStrClassSuffix, $this->_mStrClassPreffix ); 
     132        $this->_mObjNanoRequest = &Factory::newInstance('NanoRequest', $this->_mStrClassPath, $this->_mStrClassSuffix, $this->_mStrClassPreffix ); 
    133133        $return_data            = array(); 
    134134 
  • sandbox/workflow/branches/609/inc/nano/NanoGuardian.class.php

    r795 r2311  
    3232    public function __construct() 
    3333    { 
    34         $this->_mObjNanoSanitizer = new NanoSanitizer(new DummyLogger); 
     34        $this->_mObjNanoSanitizer = &Factory::newInstance('NanoSanitizer', new DummyLogger); 
    3535    } 
    3636 
  • sandbox/workflow/branches/609/inc/nano/NanoJsonConverter.class.php

    r795 r2311  
    118118        // initialize JSON object 
    119119        $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'); 
    122122    } 
    123123 
Note: See TracChangeset for help on using the changeset viewer.