From 9d1d2f6f491e7d187e0ef1e2e29a5df92b0f6cd7 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 8 Jul 2020 14:56:03 +0200 Subject: [PATCH] localisation du cron.log --- src/nineskeletor-1.0/src/Command/AppInitCommand.php | 2 +- src/nineskeletor-1.0/src/Command/CronCommand.php | 3 ++- src/nineskeletor-1.0/src/Command/SetPasswordCommand.php | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/nineskeletor-1.0/src/Command/AppInitCommand.php b/src/nineskeletor-1.0/src/Command/AppInitCommand.php index addf4d3..c89c3ae 100644 --- a/src/nineskeletor-1.0/src/Command/AppInitCommand.php +++ b/src/nineskeletor-1.0/src/Command/AppInitCommand.php @@ -47,7 +47,7 @@ class AppInitCommand extends Command { $this->output = $output; $this->filesystem = new Filesystem(); - $this->rootlog = $this->container->get('kernel')->getProjectDir()."/../var/log/"; + $this->rootlog = $this->container->get('kernel')->getProjectDir()."/../var/log/"; $this->appname = $this->container->getParameter('appName'); $this->appmailnoreply = $this->container->getParameter('appMailnoreply'); diff --git a/src/nineskeletor-1.0/src/Command/CronCommand.php b/src/nineskeletor-1.0/src/Command/CronCommand.php index cab6f49..f00cd3b 100644 --- a/src/nineskeletor-1.0/src/Command/CronCommand.php +++ b/src/nineskeletor-1.0/src/Command/CronCommand.php @@ -42,7 +42,7 @@ class CronCommand extends Command { $this->output = $output; $this->filesystem = new Filesystem(); - $this->rootlog = $this->container->get('kernel')->getProjectDir()."/../var/log/"; + $this->rootlog = $this->container->get('kernel')->getRootDir()."/../var/log/"; $appCron = $this->container->getParameter('appCron'); if(!$appCron) @@ -68,6 +68,7 @@ class CronCommand extends Command $this->writelnred('== CRON =================================================================================================='); $this->writelnred('=========================================================================================================='); $this->writeln ('Date = '.$now->format('Y-m-d H:i:s')); + $this->writeln ('Application = '.$this->container->getParameter("appName")); } foreach($crons as $cron) { diff --git a/src/nineskeletor-1.0/src/Command/SetPasswordCommand.php b/src/nineskeletor-1.0/src/Command/SetPasswordCommand.php index 0c13159..841f70f 100644 --- a/src/nineskeletor-1.0/src/Command/SetPasswordCommand.php +++ b/src/nineskeletor-1.0/src/Command/SetPasswordCommand.php @@ -46,6 +46,7 @@ class SetPasswordCommand extends Command $this->filesystem = new Filesystem(); $this->rootlog = $this->container->get('kernel')->getProjectDir()."/../var/log/"; + $this->writelnred(''); $this->writelnred('== app:SetPasword'); $this->writelnred('==========================================================================================================');