public function load($name)
    {
        $factoryClass = ucfirst($name) . "Phactory";

        if (!class_exists($factoryClass)) {
            throw new \Exception("Unknown factory '$name'");
        }

        return new Factory($name, new $factoryClass);
    }
public function load($name)
    {
        $factoryClass = ucfirst($name) . "Phactory";

        if (!class_exists($factoryClass)) {
            throw new \Exception("Unknown factory '$name'");
        }

        return new Factory($name, new $factoryClass);
    }
public function load ( $ name ) { $ factoryClass = ucfirst ( $ name ) . "Phactory" ; if ( ! class_exists ( $ factoryClass ) ) { throw new \ Exception ( "Unknown factory '$name'" ) ; } return new Factory ( $ name , new $ factoryClass ) ; }
Loads the factory according to the object class name
@param string $name
@return \Phactory\Factory
@throws \Exception
Loads the factory according to the object class name