소스 검색

Merge pull request #49 from jimmy1993k/master

added check for php file in the GearmanCacheWrapper
Marc 11 년 전
부모
커밋
87df6737a3
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      Service/GearmanCacheWrapper.php

+ 8 - 1
Service/GearmanCacheWrapper.php

@@ -261,7 +261,14 @@ class GearmanCacheWrapper
          * Every file found is parsed
          */
         foreach ($finder as $file) {
-
+            
+            /**
+             * File is checked to be parsed
+             */
+            if('php' !== strtolower($file->getExtension())) {
+                continue;
+            }
+            
             /**
              * File is accepted to be parsed
              */