예제 #1
0
파일: PathsProxy.php 프로젝트: bolt/bolt
 /**
  * {@inheritdoc}
  */
 public function offsetGet($offset)
 {
     try {
         return $this->resources->getRequest($offset);
     } catch (\InvalidArgumentException $e) {
     }
     try {
         return $this->resources->getUrl($offset);
     } catch (\InvalidArgumentException $e) {
     }
     try {
         return $this->resources->getPath($offset);
     } catch (\InvalidArgumentException $e) {
     }
     return null;
 }