Development

Changeset 19586

You must first sign up to be able to contribute.

Changeset 19586

Show
Ignore:
Timestamp:
06/26/09 10:44:43 (8 months ago)
Author:
fabien
Message:

[dependency_injection] added an exception when an ini file does not exist

Files:

Legend:

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

    r16840 r19586  
    3030    foreach ($files as $file) 
    3131    { 
    32       if (false === $result = parse_ini_file($this->getAbsolutePath($file), true)) 
     32      $path = $this->getAbsolutePath($file); 
     33      if (!file_exists($path)) 
     34      { 
     35        throw new InvalidArgumentException(sprintf('The %s file does not exist.', $file)); 
     36      } 
     37 
     38      if (false === $result = parse_ini_file($path, true)) 
    3339      { 
    3440        throw new InvalidArgumentException(sprintf('The %s file is not valid.', $file)); 

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.