private function constructFile($type)
{
// try to see if we have user defined plugin
$class = 'PhroznPlugin\\Site\\View\\' . ucfirst($type);
if (!class_exists($class)) {
$class = 'Phrozn\\Site\\View\\' . ucfirst($type);
if (!class_exists($class)) {
//throw new \RuntimeException("View of type '{$type}' not found..");
$class = 'Phrozn\\Site\\View\\Plain';
}
}
$object = new $class();
$object->setInputRootDir($this->getInputRootDir());
$object->setInputFile($this->getInputFile());
return $object;
}