Skip to content

Commit

Permalink
DE-48590 - Ignore disabled apcu (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbrauner authored May 19, 2023
1 parent 4823403 commit 4983f63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SlimApplicationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ public function create(): SlimApp
);

if ($useApcuCache && !apcu_enabled()) {
throw new LogicException('APCU cache is not enabled');
// @intentionally For cli scripts is APCU disabled by default
$useApcuCache = false;
}

if ($disableUsingSlimContainer && !($this->container instanceof ContainerInterface)) {
Expand Down

0 comments on commit 4983f63

Please sign in to comment.