Pārlūkot izejas kodu

Merge pull request #49 from jimmy1993k/master

added check for php file in the GearmanCacheWrapper
Marc 11 gadi atpakaļ
vecāks
revīzija
87df6737a3
1 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. 8 1
      Service/GearmanCacheWrapper.php

+ 8 - 1
Service/GearmanCacheWrapper.php

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