partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 27ea66aa44f44c4d7fff2dd612dd446d5936a8ac
parent 761983c9c367db865df4df2216966514f41ad541
Author: Felicitus <felicitus@felicitus.org>
Date:   Tue, 15 Dec 2015 11:37:26 +0100

Use the correct console application runner, fixes #528

Diffstat:
Msrc/PartKeepr/CronLoggerBundle/Services/CronLoggerService.php | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/PartKeepr/CronLoggerBundle/Services/CronLoggerService.php b/src/PartKeepr/CronLoggerBundle/Services/CronLoggerService.php @@ -3,7 +3,7 @@ namespace PartKeepr\CronLoggerBundle\Services; use Doctrine\ORM\EntityManager; use PartKeepr\CronLoggerBundle\Entity\CronLogger; -use Symfony\Component\Console\Application; +use Symfony\Bundle\FrameworkBundle\Console\Application; use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Output\NullOutput; use Symfony\Component\HttpKernel\Kernel; @@ -91,7 +91,8 @@ class CronLoggerService /** * Clears all cron logger entries */ - public function clear () { + public function clear() + { $dql = "DELETE FROM PartKeepr\CronLoggerBundle\Entity\CronLogger c"; $query = $this->entityManager->createQuery($dql); @@ -100,9 +101,11 @@ class CronLoggerService /** * Runs all crons + * * @throws \Exception */ - public function runCrons () { + public function runCrons() + { $this->entityManager->beginTransaction(); $repository = $this->entityManager->getRepository("PartKeeprCronLoggerBundle:CronLogger");