public function __construct(array $engines = array(), tubepress_api_log_LoggerInterface $logger) { parent::__construct($engines); $this->_logger = $logger; $this->_shouldLog = $this->_logger->isEnabled(); }