Skip to content

Commit

Permalink
[FrameworkBundle] removed deprecated options
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 23, 2013
1 parent 0bb5d01 commit 45bd413
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 33 deletions.
Expand Up @@ -26,8 +26,6 @@ class Configuration implements ConfigurationInterface
* Generates the configuration tree builder.
*
* @return TreeBuilder The tree builder
*
* @throws \RuntimeException When using the deprecated 'charset' setting
*/
public function getConfigTreeBuilder()
{
Expand All @@ -36,21 +34,6 @@ public function getConfigTreeBuilder()

$rootNode
->children()
->scalarNode('charset')
->defaultNull()
->beforeNormalization()
->ifTrue(function($v) { return null !== $v; })
->then(function($v) {
$message = 'The charset setting is deprecated. Just remove it from your configuration file.';

if ('UTF-8' !== $v) {
$message .= sprintf('You need to define a getCharset() method in your Application Kernel class that returns "%s".', $v);
}

throw new \RuntimeException($message);
})
->end()
->end()
->scalarNode('secret')->end()
->scalarNode('http_method_override')
->info("Set true to enable support for the '_method' request parameter to determine the intended HTTP method on POST requests.")
Expand Down Expand Up @@ -200,16 +183,6 @@ private function addSessionSection(ArrayNodeDefinition $rootNode)
->info('session configuration')
->canBeUnset()
->children()
->booleanNode('auto_start')
->info('DEPRECATED! Session starts on demand')
->defaultFalse()
->beforeNormalization()
->ifTrue(function($v) { return null !== $v; })
->then(function($v) {
throw new \RuntimeException('The auto_start setting is deprecated. Just remove it from your configuration file.');
})
->end()
->end()
->scalarNode('storage_id')->defaultValue('session.storage.native')->end()
->scalarNode('handler_id')->defaultValue('session.handler.native_file')->end()
->scalarNode('name')->end()
Expand Down
Expand Up @@ -22,8 +22,6 @@
<xsd:element name="annotations" type="annotations" minOccurs="0" maxOccurs="1" />
</xsd:all>

<!-- charset is deprecated and will be removed in 2.2 -->
<xsd:attribute name="charset" type="xsd:string" />
<xsd:attribute name="http-method-override" type="xsd:boolean" />
<xsd:attribute name="trusted-proxies" type="xsd:string" />
<xsd:attribute name="ide" type="xsd:string" />
Expand Down Expand Up @@ -87,9 +85,6 @@
<xsd:attribute name="cookie-domain" type="xsd:string" />
<xsd:attribute name="cookie-secure" type="xsd:boolean" />
<xsd:attribute name="cookie-httponly" type="xsd:boolean" />
<!-- deprecated attributes -->
<xsd:attribute name="auto-start" type="xsd:boolean" />
<!-- end of deprecated attributes -->
<xsd:attribute name="cache-limiter" type="xsd:string" />
<xsd:attribute name="gc-maxlifetime" type="xsd:string" />
<xsd:attribute name="gc-divisor" type="xsd:string" />
Expand Down
Expand Up @@ -87,7 +87,6 @@ public function testInvalidValueTrustedProxies()
protected static function getBundleDefaultConfig()
{
return array(
'charset' => null,
'http_method_override' => true,
'trusted_proxies' => array(),
'ide' => null,
Expand Down

0 comments on commit 45bd413

Please sign in to comment.