/** * Log a message to this writer. * * @param array $event log data event * @return void */ public function write(array $event) { if (!$this->isEnabled()) { return; } parent::write($event); }
/** * @param string $file * @param string $content * * @throws \Exception * @return void */ public function write($file, $content) { if ($this->contentWithPhpTags) { $content = '<?php' . PHP_EOL . $content; } parent::write($file, $content); }
/** * @param WebserviceGuesser $webserviceGuesser * @param FamilyMappingManager $familyMappingManager * @param AttributeMappingManager $attributeMappingManager * @param AttributeGroupMappingManager $attributeGroupMappingManager * @param MagentoMappingMerger $attributeIdMappingMerger * @param MagentoSoapClientParametersRegistry $clientParametersRegistry */ public function __construct(WebserviceGuesser $webserviceGuesser, FamilyMappingManager $familyMappingManager, AttributeMappingManager $attributeMappingManager, AttributeGroupMappingManager $attributeGroupMappingManager, MagentoMappingMerger $attributeIdMappingMerger, MagentoSoapClientParametersRegistry $clientParametersRegistry) { parent::__construct($webserviceGuesser, $clientParametersRegistry); $this->attributeMappingManager = $attributeMappingManager; $this->familyMappingManager = $familyMappingManager; $this->attributeGroupMappingManager = $attributeGroupMappingManager; $this->attributeIdMappingMerger = $attributeIdMappingMerger; $this->attributeIdMappingMerger->setParameters($this->getClientParameters(), $this->getDefaultStoreView()); }
/** * {@inheritdoc} * @see AbstractWriter::send() */ public function send(array $data) { if ($this->scheme === "http") { return $this->writeHttp($data); } elseif (in_array($this->scheme, ["tcp", "udp", "udg", "unix"])) { return parent::send([(empty($data["tag"]) ? "" : $data["tag"] . ".") . $data["message"], $data["extra"]["timestamp"], $data["extra"]]); } else { return parent::send($data); } }
/** * Constructor * * @param WebserviceGuesser $webserviceGuesser * @param CategoryMappingManager $categoryMappingManager * @param MagentoSoapClientParametersRegistry $clientParametersRegistry */ public function __construct(WebserviceGuesser $webserviceGuesser, CategoryMappingManager $categoryMappingManager, MagentoSoapClientParametersRegistry $clientParametersRegistry) { parent::__construct($webserviceGuesser, $clientParametersRegistry); $this->categoryMappingManager = $categoryMappingManager; }
/** * {@inheritdoc} */ public function send(array $data) { return parent::send(["@source" => "Scalr", "@tags" => $data["extra"]["tags"], "@fields" => $data["extra"], "@timestamp" => $data["extra"]["timestamp"]]); }
/** * {@inheritdoc} */ public function getConfigurationFields() { return array_merge(parent::getConfigurationFields(), ['channel' => ['type' => 'choice', 'options' => ['choices' => $this->channelManager->getChannelChoices(), 'required' => true, 'help' => 'pim_magento_connector.export.channel.help', 'label' => 'pim_magento_connector.export.channel.label']]]); }
/** * @param WebserviceGuesser $webserviceGuesser * @param FamilyMappingManager $familyMappingManager * @param AttributeMappingManager $attributeMappingManager * @param MagentoSoapClientParametersRegistry $clientParametersRegistry */ public function __construct(WebserviceGuesser $webserviceGuesser, FamilyMappingManager $familyMappingManager, AttributeMappingManager $attributeMappingManager, MagentoSoapClientParametersRegistry $clientParametersRegistry) { parent::__construct($webserviceGuesser, $clientParametersRegistry); $this->attributeMappingManager = $attributeMappingManager; $this->familyMappingManager = $familyMappingManager; }
/** * Destructor */ public function __destruct() { $this->stream = null; parent::__destruct(); }
/** * Destructor */ public function __destruct() { $this->internal = null; parent::__destruct(); }
public function __construct($indentation = null) { parent::__construct($indentation); }
public function __construct($logger) { parent::__construct($logger); $this->entryRepository = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Devlog\\Devlog\\Domain\\Repository\\EntryRepository'); $this->entryRepository->setExtensionConfiguration($this->logger->getExtensionConfiguration()); }