public function dump(array $options = array())
    {
        $this->document = new \DOMDocument('1.0', 'utf-8');
        $this->document->formatOutput = true;

        $container = $this->document->createElementNS('http://symfony.com/schema/dic/services', 'container');
        $container->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
        $container->setAttribute('xsi:schemaLocation', 'http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd');

        $this->addParameters($container);
        $this->addServices($container);

        $this->document->appendChild($container);
        $xml = $this->document->saveXML();
        $this->document = null;

        return $this->container->resolveEnvPlaceholders($xml);
    }
public function dump(array $options = array())
    {
        $this->document = new \DOMDocument('1.0', 'utf-8');
        $this->document->formatOutput = true;

        $container = $this->document->createElementNS('http://symfony.com/schema/dic/services', 'container');
        $container->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
        $container->setAttribute('xsi:schemaLocation', 'http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd');

        $this->addParameters($container);
        $this->addServices($container);

        $this->document->appendChild($container);
        $xml = $this->document->saveXML();
        $this->document = null;

        return $this->container->resolveEnvPlaceholders($xml);
    }
public function dump ( array $ options = array ( ) ) { $ this -> document = new \ DOMDocument ( '1.0' , 'utf-8' ) ; $ this -> document -> formatOutput = true ; $ container = $ this -> document -> createElementNS ( 'http://symfony.com/schema/dic/services' , 'container' ) ; $ container -> setAttribute ( 'xmlns:xsi' , 'http://www.w3.org/2001/XMLSchema-instance' ) ; $ container -> setAttribute ( 'xsi:schemaLocation' , 'http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd' ) ; $ this -> addParameters ( $ container ) ; $ this -> addServices ( $ container ) ; $ this -> document -> appendChild ( $ container ) ; $ xml = $ this -> document -> saveXML ( ) ; $ this -> document = null ; return $ this -> container -> resolveEnvPlaceholders ( $ xml ) ; }
Dumps the service container as an XML string.

@return string An xml string representing of the service container
Dumps the service container as an XML string .