PHP code example of vitaliyboyko / magento-seq
1. Go to this page and download the library: Download vitaliyboyko/magento-seq library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vitaliyboyko / magento-seq example snippets
declare(strict_types=1);
use VitaliiBoiko\Seq\Api\InstrumentationInterface;
class Example
{
public function __construct(
private readonly InstrumentationInterface $instrumentation
) {
}
public function execute(): void
{
$this->instrumentation->log(
'custom.backend.event',
['quote_id' => 123],
'Info'
);
}
}