Skip to content

Commit

Permalink
Log the result of the Automator::generateSymlinks() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Nov 15, 2016
1 parent d60eae9 commit 8003d04
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/Resources/contao/library/Contao/Automator.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,19 @@ public function generateXmlFiles()
*/
public function generateSymlinks()
{
$container = \System::getContainer();

$command = new SymlinksCommand();
$command->setContainer($container);
$command->setContainer(\System::getContainer());
$status = $command->run(new ArgvInput(array()), new NullOutput());

$command->run(new ArgvInput(array()), new NullOutput());
// Add a log entry
if ($status > 0)
{
$this->log('The symlinks could not be regenerated', __METHOD__, TL_ERROR);
}
else
{
$this->log('Regenerated the symlinks', __METHOD__, TL_CRON);
}
}


Expand Down

0 comments on commit 8003d04

Please sign in to comment.