Changeset 19587
- Timestamp:
- 06/26/09 11:26:27 (8 months ago)
- Files:
-
- components/dependency_injection/trunk/lib/sfServiceContainerLoaderFile.php (modified) (1 diff)
- components/dependency_injection/trunk/lib/sfServiceContainerLoaderFileIni.php (modified) (1 diff)
- components/dependency_injection/trunk/lib/sfServiceContainerLoaderFileXml.php (modified) (2 diffs)
- components/dependency_injection/trunk/lib/sfServiceContainerLoaderFileYaml.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
components/dependency_injection/trunk/lib/sfServiceContainerLoaderFile.php
r19585 r19587 41 41 } 42 42 43 /** 44 * Loads a resource. 45 * 46 * A resource is a file or an array of files. 47 * 48 * The concrete classes always hava access to an array of files 49 * as this method converts single files to arrays. 50 * 51 * @param mixed $resource The resource path 52 */ 53 public function load($resource) 54 { 55 if (!is_array($resource)) 56 { 57 $resource = array($resource); 58 } 59 60 return parent::load($resource); 61 } 62 43 63 protected function getAbsolutePath($file, $currentPath = null) 44 64 { components/dependency_injection/trunk/lib/sfServiceContainerLoaderFileIni.php
r19586 r19587 22 22 public function doLoad($files) 23 23 { 24 if (!is_array($files))25 {26 $files = array($files);27 }28 29 24 $parameters = array(); 30 25 foreach ($files as $file) components/dependency_injection/trunk/lib/sfServiceContainerLoaderFileXml.php
r19562 r19587 22 22 public function doLoad($files) 23 23 { 24 if (!is_array($files))25 {26 $files = array($files);27 }28 29 24 return $this->parse($this->getFilesAsXml($files)); 30 25 } … … 169 164 } 170 165 171 protected function getFilesAsXml( $files)166 protected function getFilesAsXml(array $files) 172 167 { 173 168 $xmls = array(); components/dependency_injection/trunk/lib/sfServiceContainerLoaderFileYaml.php
r19582 r19587 24 24 public function doLoad($files) 25 25 { 26 if (!is_array($files))27 {28 $files = array($files);29 }30 31 26 return $this->parse($this->getFilesAsArray($files)); 32 27 }

