Skip to content

Commit

Permalink
Add current cookie param in conf and fix request typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jjsaunier committed Aug 3, 2016
1 parent 4fd5562 commit 7551d38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/KernelStack/PyriteMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function handle(Request $request, $type = self::MASTER_REQUEST, $catch =
{
if(false === $this->kernel->isStarted()){
$container = $this->kernel->startContainer();
$container->bind('request', $request);
$container->bind('Request', $request);
$container->bind('LoggerFactory', $this->kernel->getLoggerFactory());
}

Expand Down
1 change: 1 addition & 0 deletions src/KernelStack/SessionMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public function handle(Request $request, $type = self::MASTER_REQUEST, $catch =
}

$cookieParams = $parameters[$this->config->get('current_locale')];
$this->config->set('current_cookie_domain', $cookieParams['domain']);

if (HttpKernelInterface::MASTER_REQUEST !== $type) {
return $this->app->handle($request, $type, $catch);
Expand Down

0 comments on commit 7551d38

Please sign in to comment.