10000 Merge remote branch 'danielholmes/request_context_routing' · lacyrhoades/symfony@158181d · GitHub
[go: up one dir, main page]

Skip to content

Commit 158181d

Browse files
committed
Merge remote branch 'danielholmes/request_context_routing'
* danielholmes/request_context_routing: [Routing] added setContext to RouterInterfaces as it is used on RouterInterface references
2 parents f7f6c51 + b14db26 commit 158181d

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

src/Symfony/Component/Routing/Generator/UrlGeneratorInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@
1111

1212
namespace Symfony\Component\Routing\Generator;
1313

14+
use Symfony\Component\Routing\RequestContextAwareInterface;
15+
1416
/**
1517
* UrlGeneratorInterface is the interface that all URL generator classes must implements.
1618
*
1719
* @author Fabien Potencier <fabien@symfony.com>
1820
*/
19-
interface UrlGeneratorInterface
21+
interface UrlGeneratorInterface extends RequestContextAwareInterface
2022
{
2123
/**
2224
* Generates a URL from the given parameters.

src/Symfony/Component/Routing/Matcher/UrlMatcherInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@
1111

1212
namespace Symfony\Component\Routing\Matcher;
1313

14+
use Symfony\Component\Routing\RequestContextAwareInterface;
15+
1416
/**
1517
* UrlMatcherInterface is the interface that all URL matcher classes must implement.
1618
*
1719
* @author Fabien Potencier <fabien@symfony.com>
1820
*/
19-
interface UrlMatcherInterface
21+
interface UrlMatcherInterface extends RequestContextAwareInterface
2022
{
2123
/**
2224
* Tries to match a URL with a set of routes.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Routing;
13+
14+
interface RequestContextAwareInterface
15+
{
16+
/**
17+
* Sets the request context.
18+
*
19+
* @param RequestContext $context The context
20+
*/
21+
function setContext(RequestContext $context);
22+
}

0 commit comments

Comments
 (0)
0