示例#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;
 }