Changeset 1007

Show
Ignore:
Timestamp:
11/08/07 20:25:36 (8 months ago)
Author:
schst
Message:

Use constant for registry key of binder

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/service/jsonrpc/stubJsonRpcProcessor.php

    r984 r1007  
    342342        } 
    343343 
    344         $binder = stubRegistry::get('net.stubbles.ioc.stubBinder'); 
     344        $binder = stubRegistry::get(stubBinder::REGISTRY_KEY); 
    345345        if (($binder instanceof stubBinder) === false) { 
    346346            throw new stubRuntimeException('No instance of net.stubbles.ioc.stubBinder in registry.'); 
  • trunk/src/main/php/net/stubbles/websites/xml/stubXMLProcessor.php

    r957 r1007  
    5656        $formValues    = array(); 
    5757 
    58         if (stubRegistry::has('net.stubbles.ioc.stubBinder')) { 
    59             $injector = stubRegistry::get('net.stubbles.ioc.stubBinder')->getInjector(); 
     58        if (stubRegistry::has(stubBinder::REGISTRY_KEY)) { 
     59            $injector = stubRegistry::get(stubBinder::REGISTRY_KEY)->getInjector(); 
    6060        } else { 
    6161            $injector = null; 
     
    6767                $injector->handleInjections($element); 
    6868            } 
    69              
     69 
    7070            if ($element->isAvailable($prefixRequest, $this->session, $this->response) == false) { 
    7171                continue; 
    7272            } 
    73              
     73 
    7474            $data = $element->process($prefixRequest, $this->session, $this->response); 
    7575            if ($prefixRequest->isCancelled() === true) { 
    7676                return; 
    7777            } 
    78              
     78 
    7979            $xmlSerializer->serialize($data, $xmlStreamWriter, array(stubXMLSerializer::OPT_ROOT_TAG => $name)); 
    8080            if ($element instanceof stubXMLPageElement) {