App
This commit is contained in:
14
app/bootstrap/setups/commands.php
Normal file
14
app/bootstrap/setups/commands.php
Normal 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')
|
||||
);
|
||||
}
|
||||
];
|
18
app/bootstrap/setups/logs.php
Normal file
18
app/bootstrap/setups/logs.php
Normal 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(),
|
||||
]);
|
||||
|
||||
}
|
||||
];
|
Reference in New Issue
Block a user