This commit is contained in:
2024-08-22 19:49:44 -04:00
parent a617bcf040
commit d251d8bd7d
14 changed files with 2971 additions and 0 deletions

View File

@ -0,0 +1,14 @@
<?php
use Psr\Container\ContainerInterface;
return [
ProVM\ComposeManager\Command\Create::class => function(ContainerInterface $container) {
return new ProVM\ComposeManager\Command\Create($container->get('ROOT'), $container->get('OUTPUT'));
},
Symfony\Component\Console\CommandLoader\CommandLoaderInterface::class => function(ContainerInterface $container) {
return new Symfony\Component\Console\CommandLoader\ContainerCommandLoader(
$container,
$container->get('commands')
);
}
];

View File

@ -0,0 +1,18 @@
<?php
use Psr\Container\ContainerInterface;
return [
Psr\Log\LoggerInterface::class => function(ContainerInterface $container) {
return new Monolog\Logger('app', [
(new Monolog\Handler\RotatingFileHandler('/logs/error.log'))
->setFormatter(new Monolog\Formatter\LineFormatter(null, null, true, true)),
], [
new Monolog\Processor\UidProcessor(),
new Monolog\Processor\MemoryUsageProcessor(),
new Monolog\Processor\MemoryPeakUsageProcessor(),
new Monolog\Processor\PsrLogMessageProcessor(),
new Monolog\Processor\IntrospectionProcessor(),
]);
}
];