Browse Source

Merge pull request #49 from jimmy1993k/master

added check for php file in the GearmanCacheWrapper
Marc 11 năm trước cách đây
mục cha
commit
87df6737a3
1 tập tin đã thay đổi với 8 bổ sung1 xóa
  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
              */