1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace Symfony\Bundle\FrameworkBundle\Templating;
- @trigger_error('The '.__NAMESPACE__.'\Debugger class is deprecated since Symfony 2.4 and will be removed in 3.0. Use the Psr\Log\LoggerInterface interface instead.', E_USER_DEPRECATED);
- use Psr\Log\LoggerInterface;
- use Symfony\Component\Templating\DebuggerInterface;
- class Debugger implements DebuggerInterface
- {
- protected $logger;
- public function __construct(LoggerInterface $logger = null)
- {
- $this->logger = $logger;
- }
-
- public function log($message)
- {
- if (null !== $this->logger) {
- $this->logger->debug($message);
- }
- }
- }
|