Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sf3 compatibility: remove Symfony\Component\HttpKernel\Log\Logger… #285

Merged
merged 1 commit into from
Mar 23, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Logger/LoggerAwareInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@

namespace JMS\TranslationBundle\Logger;

use Symfony\Component\HttpKernel\Log\LoggerInterface;
use Psr\Log\LoggerInterface;

/**
* @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
*/
interface LoggerAwareInterface
{
/**
* @param \Symfony\Component\HttpKernel\Log\LoggerInterface $logger
* @param LoggerInterface $logger
*/
function setLogger(LoggerInterface $logger);
}
2 changes: 1 addition & 1 deletion Logger/OutputLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
namespace JMS\TranslationBundle\Logger;

use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\HttpKernel\Log\LoggerInterface;
use Psr\Log\LoggerInterface;

class OutputLogger implements LoggerInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
use JMS\TranslationBundle\Translation\Extractor\FileVisitorInterface;
use Doctrine\Common\Annotations\DocParser;
use JMS\TranslationBundle\Logger\LoggerAwareInterface;
use Symfony\Component\HttpKernel\Log\LoggerInterface;
use Psr\Log\LoggerInterface;

class AuthenticationMessagesExtractor implements LoggerAwareInterface, FileVisitorInterface, \PHPParser_NodeVisitor
{
Expand Down
4 changes: 2 additions & 2 deletions Translation/Extractor/File/DefaultPhpFileExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
use JMS\TranslationBundle\Translation\Extractor\FileVisitorInterface;
use JMS\TranslationBundle\Model\MessageCatalogue;
use JMS\TranslationBundle\Logger\LoggerAwareInterface;
use Symfony\Component\HttpKernel\Log\LoggerInterface;
use Psr\Log\LoggerInterface;

/**
* This parser can extract translation information from PHP files.
Expand All @@ -54,7 +54,7 @@ public function __construct(DocParser $docParser)
}

/**
* @param \Symfony\Component\HttpKernel\Log\LoggerInterface $logger
* @param LoggerInterface $logger
*/
public function setLogger(LoggerInterface $logger)
{
Expand Down
2 changes: 1 addition & 1 deletion Translation/Extractor/File/FormExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
use JMS\TranslationBundle\Model\MessageCatalogue;
use JMS\TranslationBundle\Translation\Extractor\FileVisitorInterface;
use JMS\TranslationBundle\Logger\LoggerAwareInterface;
use Symfony\Component\HttpKernel\Log\LoggerInterface;
use Psr\Log\LoggerInterface;

class FormExtractor implements FileVisitorInterface, \PHPParser_NodeVisitor
{
Expand Down
2 changes: 1 addition & 1 deletion Translation/Extractor/FileExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use JMS\TranslationBundle\Twig\DefaultApplyingNodeVisitor;

use JMS\TranslationBundle\Exception\InvalidArgumentException;
use Symfony\Component\HttpKernel\Log\LoggerInterface;
use Psr\Log\LoggerInterface;
use JMS\TranslationBundle\Logger\LoggerAwareInterface;

use JMS\TranslationBundle\Twig\RemovingNodeVisitor;
Expand Down
6 changes: 3 additions & 3 deletions Translation/ExtractorManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
namespace JMS\TranslationBundle\Translation;

use JMS\TranslationBundle\Exception\InvalidArgumentException;
use Symfony\Component\HttpKernel\Log\LoggerInterface;
use Psr\Log\LoggerInterface;

use JMS\TranslationBundle\Model\MessageCatalogue;
use JMS\TranslationBundle\Translation\Extractor\FileExtractor;
Expand All @@ -35,7 +35,7 @@ class ExtractorManager implements ExtractorInterface

/**
* @param Extractor\FileExtractor $extractor
* @param \Symfony\Component\HttpKernel\Log\LoggerInterface $logger
* @param LoggerInterface $logger
* @param array $customExtractors
*/
public function __construct(FileExtractor $extractor, LoggerInterface $logger, array $customExtractors = array())
Expand All @@ -53,7 +53,7 @@ public function reset()
}

/**
* @param \Symfony\Component\HttpKernel\Log\LoggerInterface $logger
* @param LoggerInterface $logger
*/
public function setLogger(LoggerInterface $logger)
{
Expand Down
6 changes: 3 additions & 3 deletions Translation/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
use JMS\TranslationBundle\Model\Message;
use JMS\TranslationBundle\Translation\Comparison\CatalogueComparator;

use Symfony\Component\HttpKernel\Log\LoggerInterface;
use Psr\Log\LoggerInterface;
use Symfony\Component\Translation\MessageCatalogue as SymfonyMessageCatalogue;
use Symfony\Component\Finder\Finder;
use Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader;
Expand Down Expand Up @@ -56,7 +56,7 @@ class Updater
/**
* @param LoaderManager $loader
* @param ExtractorManager $extractor
* @param \Symfony\Component\HttpKernel\Log\LoggerInterface $logger
* @param LoggerInterface $logger
* @param FileWriter $writer
*/
public function __construct(LoaderManager $loader, ExtractorManager $extractor, LoggerInterface $logger, FileWriter $writer)
Expand All @@ -68,7 +68,7 @@ public function __construct(LoaderManager $loader, ExtractorManager $extractor,
}

/**
* @param \Symfony\Component\HttpKernel\Log\LoggerInterface $logger
* @param LoggerInterface $logger
*/
public function setLogger(LoggerInterface $logger)
{
Expand Down