Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23f5145

Browse files
committed
renamed proxy to router_proxy
1 parent e5135f6 commit 23f5145

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function getConfigTreeBuilder()
7373

7474
$this->addFormSection($rootNode);
7575
$this->addEsiSection($rootNode);
76-
$this->addProxySection($rootNode);
76+
$this->addRouterProxySection($rootNode);
7777
$this->addProfilerSection($rootNode);
7878
$this->addRouterSection($rootNode);
7979
$this->addSessionSection($rootNode);
@@ -115,12 +115,12 @@ private function addEsiSection(ArrayNodeDefinition $rootNode)
115115
;
116116
}
117117

118-
private function addProxySection(ArrayNodeDefinition $rootNode)
118+
private function addRouterProxySection(ArrayNodeDefinition $rootNode)
119119
{
120120
$rootNode
121121
->children()
122-
->arrayNode('proxy')
123-
->info('proxy configuration')
122+
->arrayNode('router_proxy')
123+
->info('proxy configuration for the HTTP content renderer')
124124
->canBeDisabled()
125125
->children()
126126
->scalarNode('path')->defaultValue('/_proxy')->end()

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ public function load(array $configs, ContainerBuilder $container)
9494
$this->registerEsiConfiguration($config['esi'], $loader);
9595
}
9696

97-
if (isset($config['proxy'])) {
98-
$this->registerProxyConfiguration($config['proxy'], $container, $loader);
97+
if (isset($config['router_proxy'])) {
98+
$this->registerRouterProxyConfiguration($config['router_proxy'], $container, $loader);
9999
}
100100

101101
if (isset($config['profiler'])) {
@@ -189,12 +189,12 @@ private function registerEsiConfiguration(array $config, XmlFileLoader $loader)
189189
}
190190

191191
/**
192-
* Loads the proxy configuration.
192+
* Loads the router proxy configuration.
193193
*
194194
* @param array $config A proxy configuration array
195195
* @param XmlFileLoader $loader An XmlFileLoader instance
196196
*/
197-
private function registerProxyConfiguration(array $config, ContainerBuilder $container, XmlFileLoader $loader)
197+
private function registerRouterProxyConfiguration(array $config, ContainerBuilder $container, XmlFileLoader $loader)
198198
{
199199
if (!empty($config['enabled'])) {
200200
$loader->load('proxy.xml');

src/Symfony/Bundle/FrameworkBundle/Resources/config/schema/symfony-1.0.xsd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<xsd:element name="form" type="form" minOccurs="0" maxOccurs="1" />
1313
<xsd:element name="csrf-protection" type="csrf_protection" minOccurs="0" maxOccurs="1" />
1414
<xsd:element name="esi" type="esi" minOccurs="0" maxOccurs="1" />
15-
<xsd:element name="proxy" type="proxy" minOccurs="0" maxOccurs="1" />
15+
<xsd:element name="router-proxy" type="router-proxy" minOccurs="0" maxOccurs="1" />
1616
<xsd:element name="profiler" type="profiler" minOccurs="0" maxOccurs="1" />
1717
<xsd:element name="router" type="router" minOccurs="0" maxOccurs="1" />
1818
<xsd:element name="session" type="session" minOccurs="0" maxOccurs="1" />
@@ -45,7 +45,7 @@
4545
<xsd:attribute name="enabled" type="xsd:boolean" />
4646
</xsd:complexType>
4747

48-
<xsd:complexType name="proxy">
48+
<xsd:complexType name="router-proxy">
4949
<xsd:attribute name="enabled" type="xsd:boolean" />
5050
<xsd:attribute name="path" type="xsd:string" />
5151
</xsd:complexType>

0 commit comments

Comments
 (0)