Changeset 1111

Show
Ignore:
Timestamp:
12/05/07 12:56:59 (9 months ago)
Author:
mikey
Message:

made injections optional

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/util/log/stubLogDataFactory.php

    r1087 r1111  
    2525     * returns the injector instance 
    2626     * 
    27      * @return  stubInjector 
     27     * @param  stubLogData 
    2828     */ 
    29     protected function getInjector(
     29    protected function handleInjections(stubLogData $logData
    3030    { 
    3131        static $injector; 
     
    3333            $binder = stubRegistry::get(stubBinder::REGISTRY_KEY); 
    3434            if (($binder instanceof stubBinder) === false) { 
    35                 throw new stubRuntimeException('No instance of net::stubbles::ioc::stubBinder available in registry.')
     35                return
    3636            } 
    3737             
     
    3939        } 
    4040         
    41         return $injector
     41        $injector->handleInjections($logData)
    4242    } 
    4343 
     
    6262        } 
    6363         
    64         self::getInjector()->handleInjections($logData); 
     64        self::handleInjections($logData); 
    6565        return $logData; 
    6666    }