소스 검색

get original class

Jiang qinghua 6 년 전
부모
커밋
cbb964cf7c
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/Repositories/Proxy.php

+ 5 - 0
src/Repositories/Proxy.php

@@ -21,6 +21,11 @@ class Proxy implements \Dcat\Admin\Contracts\Repository
         $this->listeners = Repository::getListeners(get_class($repository));
     }
 
+    public function getOriginalClassName()
+    {
+        return get_class($this->repository);
+    }
+
     public function getKeyName()
     {
         return $this->repository->getKeyName();