Changeset 19582
- Timestamp:
- 06/26/09 09:25:52 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
components/dependency_injection/trunk/lib/sfServiceContainerDumperYaml.php
r16840 r19582 92 92 protected function addServices() 93 93 { 94 if (!$this->container->getServiceDefinitions()) 95 { 96 return ''; 97 } 98 94 99 $code = "services:\n"; 95 100 foreach ($this->container->getServiceDefinitions() as $id => $definition) … … 103 108 protected function addParameters() 104 109 { 110 if (!$this->container->getParameters()) 111 { 112 return ''; 113 } 114 105 115 return sfYaml::dump(array('parameters' => $this->escape($this->container->getParameters())), 2); 106 116 } components/dependency_injection/trunk/lib/sfServiceContainerLoaderFileYaml.php
r16840 r19582 177 177 protected function validate($content, $file) 178 178 { 179 if (is_null($content)) 180 { 181 return $content; 182 } 183 179 184 if (!is_array($content)) 180 185 {

