public function inject($identifier, $target)
    {
        if ($this->hasMetadataValue($identifier)) {
            \common_Logger::i(__('Preparing Metadata Values for target "%s"...', $identifier));
            $values = $this->getMetadataValue($identifier);

            foreach ($this->getInjectors() as $injector) {
                \common_Logger::i(__('Attempting to inject "%s" metadata values for target "%s" with metadata Injector "%s".',
                    count($values), $identifier, get_class($injector)));
                $injector->inject($target, array($identifier => $values));
            }
        }
    }
public function inject($identifier, $target)
    {
        if ($this->hasMetadataValue($identifier)) {
            \common_Logger::i(__('Preparing Metadata Values for target "%s"...', $identifier));
            $values = $this->getMetadataValue($identifier);

            foreach ($this->getInjectors() as $injector) {
                \common_Logger::i(__('Attempting to inject "%s" metadata values for target "%s" with metadata Injector "%s".',
                    count($values), $identifier, get_class($injector)));
                $injector->inject($target, array($identifier => $values));
            }
        }
    }
public function inject ( $ identifier , $ target ) { if ( $ this -> hasMetadataValue ( $ identifier ) ) { \ common_Logger :: i ( __ ( 'Preparing Metadata Values for target "%s"...' , $ identifier ) ) ; $ values = $ this -> getMetadataValue ( $ identifier ) ; foreach ( $ this -> getInjectors ( ) as $ injector ) { \ common_Logger :: i ( __ ( 'Attempting to inject "%s" metadata values for target "%s" with metadata Injector "%s".' , count ( $ values ) , $ identifier , get_class ( $ injector ) ) ) ; $ injector -> inject ( $ target , array ( $ identifier => $ values ) ) ; } } }
Inject metadata value for an identifier through injectors

Inject metadata value for an identifier by calling each injectors
Injectors need $target for injection

@param $identifier
@param $target
Inject metadata value for an identifier through injectors