Sequenzia/lib/Rails/Paths/Paths.php

15 lines
341 B
PHP
Raw Normal View History

2013-10-02 18:14:53 +02:00
<?php
namespace Rails\Paths;
class Paths extends \Rails\Config\Config
{
public function __get($prop)
{
if ($this->offsetExists($prop)) {
return $this->offsetGet($prop);
}
throw new \Rails\Exception\RuntimeException(
sprintf("Trying to get undefined path %s", $prop)
);
}
}