Multiple implementations of the same back-end application. The aim is to provide quick, side-by-side comparisons of different technologies (languages, frameworks, libraries) while preserving consistent business logic across all implementations.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
593 B

<?php
declare(strict_types=1);
require_once __DIR__ . '/../../vendor/autoload.php';
use AutoStore\DiContainer;
use AutoStore\Application\Commands\HandleExpiredItems;
use Psr\Log\LoggerInterface;
$diContainer = new DiContainer();
$logger = $diContainer->get(LoggerInterface::class);
try {
$handleExpiredItems = $diContainer->get(HandleExpiredItems::class);
$handleExpiredItems->execute();
$logger->info('Expired items check completed successfully');
exit(0);
} catch (\Exception $e) {
$logger->error('Error handling expired items: ' . $e->getMessage());
exit(1);
}