Skip to content

Commit

Permalink
Merge pull request #120 from EmmanuelVella/patch-2
Browse files Browse the repository at this point in the history
Coding convention update
  • Loading branch information
lsmith77 committed Sep 10, 2014
2 parents 57c1e29 + 14af4e7 commit 4297886
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions EventListener/LocaleListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public function onKernelRequest(GetResponseEvent $event)
if ($locale && $this->bestLocaleMatcher) {
$locale = $this->bestLocaleMatcher->match($locale);
}

if ($locale) {

$this->logEvent('Setting [ %s ] as locale for the (Sub-)Request', $locale);
$request->setLocale($locale);
$request->attributes->set('_locale', $locale);
Expand Down Expand Up @@ -149,14 +149,16 @@ public function setEventDispatcher(EventDispatcherInterface $dispatcher)
/**
* @param boolean $disableVaryHeader
*/
public function setDisableVaryHeader ($disableVaryHeader) {
public function setDisableVaryHeader($disableVaryHeader)
{
$this->disableVaryHeader = $disableVaryHeader;
}

/**
* @param string $excludedPattern
*/
public function setExcludedPattern($excludedPattern) {
public function setExcludedPattern($excludedPattern)
{
$this->excludedPattern = $excludedPattern;
}

Expand Down

0 comments on commit 4297886

Please sign in to comment.