Procházet zdrojové kódy

Merge pull request #49 from jimmy1993k/master

added check for php file in the GearmanCacheWrapper
Marc před 11 roky
rodič
revize
87df6737a3
1 změnil soubory, kde provedl 8 přidání a 1 odebrání
  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
              */