Skip to content

Commit

Permalink
Merge pull request #413 from perftools/restore-flash-messages
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc authored Jan 22, 2021
2 parents 776b59d + 51dc62c commit 2e2caa9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/ServiceProvider/SlimProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Pimple\Container;
use Pimple\ServiceProviderInterface;
use Slim\Middleware\SessionCookie;
use Slim\Slim as App;
use Slim\Views\Twig;
use XHGui\Twig\TwigExtension;
Expand Down Expand Up @@ -45,6 +46,11 @@ public function register(Container $c): void

$app = new App($c['config']);

// Enable cookie based sessions
$app->add(new SessionCookie([
'httponly' => true,
]));

$view = $c['view'];
$view->parserExtensions = [
new TwigExtension($app),
Expand Down
2 changes: 1 addition & 1 deletion tests/Searcher/MongoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public function testTruncateResultsPreserveIndexes(): void
$this->importFixture($this->saver);

$result = $this->mongo->getAll(new SearchOptions());
$this->assertCount(7, $result['results']);
$this->assertGreaterThan(0, count($result['results']));

$this->mongo->truncate();

Expand Down

0 comments on commit 2e2caa9

Please sign in to comment.