App src code

This commit is contained in:
2023-02-14 17:27:01 -03:00
parent ab6c7fa9dd
commit 5eec0d93b0
26 changed files with 525 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<?php
use Psr\Container\ContainerInterface;
return [
Psr\Log\LoggerInterface::class => function(ContainerInterface $container) {
$logger = new Monolog\Logger('logger');
$logger->pushHandler(
new Monolog\Handler\RotatingFileHandler(
implode(DIRECTORY_SEPARATOR, [
$container->get('logs_folder'), 'php.log'
])
)
);
return $logger;
}
];