Explorar o código

Merge pull request #49 from jimmy1993k/master

added check for php file in the GearmanCacheWrapper
Marc %!s(int64=11) %!d(string=hai) anos
pai
achega
87df6737a3
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  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
              */