[FrameworkBundle] removed deprecated options

This commit is contained in:
Fabien Potencier 2013-03-01 11:25:47 +01:00
parent 0bb5d01f32
commit 45bd4135ec
3 changed files with 0 additions and 33 deletions

View File

@ -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()
{
@ -36,21 +34,6 @@ class Configuration implements ConfigurationInterface
$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.")
@ -200,16 +183,6 @@ class Configuration implements ConfigurationInterface
->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()

View File

@ -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" />
@ -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" />

View File

@ -87,7 +87,6 @@ class ConfigurationTest extends \PHPUnit_Framework_TestCase
protected static function getBundleDefaultConfig()
{
return array(
'charset' => null,
'http_method_override' => true,
'trusted_proxies' => array(),
'ide' => null,