public function DownloadLogger::__construct in Commerce File 8.2
Constructs a new DownloadLogger object.
Parameters
\Drupal\Core\Database\Connection $connection: The database connection to use.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\Component\Datetime\TimeInterface $time: The time.
File
- src/
DownloadLogger.php, line 60
Class
- DownloadLogger
- Provides a service responsible for logging licensed file downloads.
Namespace
Drupal\commerce_fileCode
public function __construct(Connection $connection, RequestStack $request_stack, TimeInterface $time) {
$this->connection = $connection;
$this->requestStack = $request_stack;
$this->time = $time;
}