public function __construct()
 {
     parent::__construct();
     /** @var $logManager \TYPO3\CMS\Core\Log\LogManager */
     $logManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Log\LogManager::class);
     $this->logger = $logManager->getLogger(__CLASS__);
     $this->db = $GLOBALS['TYPO3_DB'];
 }
Example #2
0
 /**
  * Construct a new package repository.
  *
  * @param array                    $packageData The raw package data.
  * @param array<string,mixed>|null $options     The repository options.
  * @param mixed                    $rawData     The raw data describing the repository.
  */
 public function __construct(array $packageData, array $options = null, $rawData = null)
 {
     parent::__construct('package', $options, $rawData);
     $this->packageData = $packageData;
 }
Example #3
0
 /**
  * Construct a new repository.
  *
  * @param string                   $type    The repository type.
  * @param string|null              $uri     The repository URI.
  * @param array<string,mixed>|null $options The repository options.
  * @param mixed                    $rawData The raw data describing the repository.
  */
 public function __construct($type, $uri = null, array $options = null, $rawData = null)
 {
     parent::__construct($type, $options, $rawData);
     $this->uri = $uri;
 }