Skip to content

Commit

Permalink
disable caching
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Aug 2, 2022
1 parent fc46dc1 commit e99a5ce
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions public/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@

try {
$app = new Basis\Application(dirname(__DIR__));
$container = $app->getContainer();

$logger = new Monolog\Logger('tarantool-admin');
$container->share(
Psr\Log\LoggerInterface::class,
new Monolog\Logger('tarantool-admin')
);

$app->getContainer()
->share(Psr\Log\LoggerInterface::class, $logger);
$container->share(
Symfony\Component\Cache\Adapter\AdapterInterface::class,
Symfony\Component\Cache\Adapter\ArrayAdapter::class
);

echo $app->get(Basis\Http::class)
->process($_SERVER['REQUEST_URI']);
Expand Down

0 comments on commit e99a5ce

Please sign in to comment.