Development

Changeset 19634

You must first sign up to be able to contribute.

Changeset 19634

Show
Ignore:
Timestamp:
06/28/09 10:02:09 (8 months ago)
Author:
fabien
Message:

[dependency_injection] fixed anonymous services support in XMLs

Files:

Legend:

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

    r19633 r19634  
    222222 
    223223    // find anonymous service definitions 
    224     $nodes = $xml->xpath('//argument[@type="service"][not(@id)]'); 
     224    $xml->registerXPathNamespace('container', 'http://symfony-project.org/2.0/container'); 
     225    $nodes = $xml->xpath('//container:argument[@type="service"][not(@id)]'); 
    225226    foreach ($nodes as $node) 
    226227    { 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.