This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
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)
);
}
}