Skip to content

Commit 1a1e985

Browse files
committed
Deprecated immediate option
1 parent ec80053 commit 1a1e985

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CHANGELOG-3.2.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ CHANGELOG for 3.2.x
44
This changelog references the relevant changes (bug and security fixes) done
55
in 3.2 versions.
66

7+
* 3.2.1 (2016-xx-xx)
8+
9+
* Restored and deprecated `immediate` option
10+
711
* 3.2.0 (2016-08-04)
812

913
* Allow driverless type definitions #953

DependencyInjection/Configuration.php

+8
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,14 @@ protected function getPersistenceNode()
497497
$node = $builder->root('persistence');
498498

499499
$node
500+
->beforeNormalization()
501+
->ifTrue(function($v) { return isset($v['immediate']); })
502+
->then(function($v) {
503+
@trigger_error('The immediate configuration key is deprecated since version 3.2 and will be removed in 4.0.', E_USER_DEPRECATED);
504+
505+
return $v;
506+
})
507+
->end()
500508
->validate()
501509
->ifTrue(function ($v) { return isset($v['driver']) && 'propel' === $v['driver'] && isset($v['listener']); })
502510
->thenInvalid('Propel doesn\'t support listeners')

0 commit comments

Comments
 (0)