Classes/Agents/AbstractAgent.php
<?php
/***
* This file is part of an +Pluswerk AG Extension for TYPO3 CMS.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* (c) 2017 Markus Hölzle <markus.hoelzle@pluswerk.ag>, +Pluswerk AG
***/
namespace Pluswerk\CacheAutomation\Agents;
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
* Class AbstractAgent
*
* @author Markus Hölzle <markus.hoelzle@pluswerk.ag>
* @package Pluswerk\CacheAutomation\Agents
*/
abstract class AbstractAgent implements AgentInterface
{
protected ConnectionPool $connectionPool;
/**
* AbstractAgent constructor.
*/
public function __construct()
{
$this->connectionPool = GeneralUtility::makeInstance(ConnectionPool::class);
}
}