Procházet zdrojové kódy

Add missing variable

Jordi Boggiano před 6 roky
rodič
revize
347231d324

+ 2 - 0
src/Packagist/WebBundle/Command/CompileStatsCommand.php

@@ -49,6 +49,8 @@ class CompileStatsCommand extends ContainerAwareCommand
         $conn = $doctrine->getManager()->getConnection();
         $this->redis = $redis = $this->getContainer()->get('snc_redis.default');
 
+        $yesterday = new \DateTime('yesterday 00:00:00');
+
         // fetch existing ids
         $doctrine = $this->getContainer()->get('doctrine');
         $packages = $conn->fetchAll('SELECT id FROM package ORDER BY id ASC');