Development

Changeset 19671

You must first sign up to be able to contribute.

Changeset 19671

Show
Ignore:
Timestamp:
06/29/09 14:34:41 (4 years ago)
Author:
fabien
Message:

[dependency_injection] removed unused method in XML dumper class

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • components/dependency_injection/trunk/lib/sfServiceContainerDumperXml.php

    r19670 r19671  
    161161  } 
    162162 
    163   protected function dumpValue($value) 
    164   { 
    165     if (is_array($value)) 
    166     { 
    167       $code = array(); 
    168       foreach ($value as $k => $v) 
    169       { 
    170         $code[$k] = $this->dumpValue($v); 
    171       } 
    172  
    173       return $code; 
    174     } 
    175     elseif (is_object($value) && $value instanceof sfServiceReference) 
    176     { 
    177       return sprintf("<service id=\"%s\" />", (string) $value); 
    178     } 
    179     elseif (is_object($value) || is_resource($value)) 
    180     { 
    181       throw new RuntimeException('Unable to dump a service container if a parameter is an object or a resource.'); 
    182     } 
    183     else 
    184     { 
    185       return $value; 
    186     } 
    187   } 
    188  
    189163  protected function escape($arguments) 
    190164  {