コード例 #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;
 }