ltsecurityinc安防产品在线商城代码

This commit is contained in:
2026-09-14 17:47:10 +08:00
parent 57d8444c15
commit 6a3c9c5bd8
14539 changed files with 1775310 additions and 0 deletions
@@ -0,0 +1,17 @@
<?php
namespace CK\Logger\Console;
use Magento\Framework\Console\CommandListInterface;
use CK\Logger\Console\Command\TestLogger;
class CommandList implements CommandListInterface {
public function getCommands(): array {
return [
TestLogger::class
];
}
}
@@ -0,0 +1,28 @@
<?php
namespace CK\Logger\Console\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use CK\Logger\Handler\Handler;
use CK\Logger\Logger;
class TestLogger extends Command {
protected function configure(): void {
$this->setName('ck:logger:test')
->setDescription('Test CK Logger: writes a message to ck_debug.log');
}
protected function execute(InputInterface $input, OutputInterface $output): int {
$handler = new Handler(new \Magento\Framework\Filesystem\Driver\File());
$logger = new Logger([$handler]);
$logger->info("✅ CK Logger test message from console command!");
$output->writeln("<info>Message written to var/log/ck_debug.log</info>");
return Command::SUCCESS;
}
}