public function dump(array $options = [])
    {
        $compiled = false;
        if (isset($options['do_compile']) && true === $options['do_compile']) {
            $this->container->compile();
            $compiled = true;
        }

        $dumper = [
            'parameters'    => $this->dumpContainerParameters($options),
            'services'      => $this->dumpContainerDefinitions($options),
            'aliases'       => $this->dumpContainerAliases($options),
            'is_compiled'   => $compiled,
        ];

        return serialize($dumper);
    }
public function dump(array $options = [])
    {
        $compiled = false;
        if (isset($options['do_compile']) && true === $options['do_compile']) {
            $this->container->compile();
            $compiled = true;
        }

        $dumper = [
            'parameters'    => $this->dumpContainerParameters($options),
            'services'      => $this->dumpContainerDefinitions($options),
            'aliases'       => $this->dumpContainerAliases($options),
            'is_compiled'   => $compiled,
        ];

        return serialize($dumper);
    }
public function dump ( array $ options = [ ] ) { $ compiled = false ; if ( isset ( $ options [ 'do_compile' ] ) && true === $ options [ 'do_compile' ] ) { $ this -> container -> compile ( ) ; $ compiled = true ; } $ dumper = [ 'parameters' => $ this -> dumpContainerParameters ( $ options ) , 'services' => $ this -> dumpContainerDefinitions ( $ options ) , 'aliases' => $ this -> dumpContainerAliases ( $ options ) , 'is_compiled' => $ compiled , ] ; return serialize ( $ dumper ) ; }
Dumps the service container.

@param array $options An array of options

@return string The representation of the service container
Dumps the service container .