Skip to content

Commit 11cc153

Browse files
authored
Merge pull request #1 from hafrit/master
merge fix
2 parents c68f1e2 + 65e7c35 commit 11cc153

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

PermanentRedirectionBundle/Listeners/RouteListener.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ public function onKernelController(FilterControllerEvent $event)
4343
if ($this->container->getParameter('hafrit_permanent_redirection.enable')) {
4444
return $this->checkExistRedirection($event, $request);
4545
}
46-
47-
// All route parameters including the `_controller`
48-
//$params = $request->attributes->get('_route_params');
4946
}
5047

5148
/**
@@ -83,4 +80,4 @@ private function createRedirection(FilterControllerEvent $event, Request $reques
8380
);
8481
});
8582
}
86-
}
83+
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# PermanentRedirectionBundle
22

3+
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/5311cf99-0721-49de-887e-1b530451c650/mini.png)](https://insight.sensiolabs.com/projects/5311cf99-0721-49de-887e-1b530451c650)
34
[![Total Downloads](https://poser.pugx.org/hafrit/permanent-redirection-bundle/downloads)](https://packagist.org/packages/hafrit/permanent-redirection-bundle)
45
[![Latest Stable Version](https://poser.pugx.org/hafrit/permanent-redirection-bundle/v/stable)](https://packagist.org/packages/hafrit/permanent-redirection-bundle)
5-
[![Latest Unstable Version](https://poser.pugx.org/hafrit/permanent-redirection-bundle/v/unstable)](https://packagist.org/packages/hafrit/permanent-redirection-bundle)
66
[![License](https://poser.pugx.org/hafrit/permanent-redirection-bundle/license)](https://packagist.org/packages/hafrit/permanent-redirection-bundle)
77

88
This bundle enable you to create infinite number of redirection without using code.
@@ -72,7 +72,7 @@ hafrit_permanent_redirection:
7272
target: ~ # Required # target route name,
7373
status: ~ # Required # redirection status (301, 302, ...) @see Symfony\Component\HttpFoundation\Response.php isRedirect function
7474
referenceType: ~ # Optional Default 1 # @see Symfony\Component\Routing\Generator\UrlGeneratorInterface.php,
75-
keepParameters: ~ # Optional Default false # redirect to target route with the same source route route parameters
75+
keepParameters: ~ # Optional Default false # redirect to target route with the same source route parameters
7676
}
7777

7878
```

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "hafrit/permanent-redirection-bundle",
33
"description": "A symfony bundle that enable you to create redirections from configuration yml file.",
4-
"keywords": ["redirection", "redirect", "permanent", "bundle", "symfony2 redirection", "redirection symfony2", "redirect symfony2", "302", "301", "hafrit"],
4+
"keywords": ["redirection", "redirect", "permanent", "bundle", "symfony redirection", "redirection symfony", "redirect symfony", "302", "301", "hafrit"],
55
"authors": [
66
{
77
"name": "hafrit",

0 commit comments

Comments
 (0)