Skip to content

Commit

Permalink
Merge pull request #276 from chosroes/master
Browse files Browse the repository at this point in the history
Fix compiler deprecated addLogMessage method usage
  • Loading branch information
GuilhemN authored May 31, 2017
2 parents 8958e36 + c45b686 commit 21a2f9b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion DependencyInjection/Compiler/AnnotationConfigurationPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ public function process(ContainerBuilder $container)

$directories = $this->getScanDirectories($container);
if (!$directories) {
$container->getCompiler()->addLogMessage('No directories configured for AnnotationConfigurationPass.');
if (method_exists($container, 'log')) {
$container->log($this, 'No directories configured for AnnotationConfigurationPass.');
} else {
$container->getCompiler()->addLogMessage('No directories configured for AnnotationConfigurationPass.');
}

return;
}
Expand Down

0 comments on commit 21a2f9b

Please sign in to comment.