beberlei / yadif

Yet Another (PHP) Dependency Injection Framework
Other
37 stars 1 forks source link

Typo's error #14

Open Calak opened 14 years ago

Calak commented 14 years ago

Wrong class name for exception, at Container.php, line 220.

public function __set($name, $instance)
{
    $origName = $name;
    $name = strtolower($name);
    if(is_object($instance)) {
        $this->_instances[$name] = $instance;
    } else {
        throw new **Yadif_Container**("Setting instance '".$origName."' with non-object not possible.");
    }
}