Skip to content

Commit aea2144

Browse files
committed
fix some deprecations
1 parent 24b7fef commit aea2144

File tree

8 files changed

+21
-6
lines changed

8 files changed

+21
-6
lines changed

UPGRADE-4.4.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Form
7171
FrameworkBundle
7272
---------------
7373

74+
* Deprecated booting the kernel before running `WebTestCase::createClient()`.
7475
* Deprecated support for `templating` engine in `TemplateController`, use Twig instead
7576
* The `$parser` argument of `ControllerResolver::__construct()` and `DelegatingLoader::__construct()`
7677
has been deprecated.
@@ -92,6 +93,12 @@ HttpKernel
9293

9394
* The `DebugHandlersListener` class has been marked as `final`
9495

96+
Lock
97+
----
98+
99+
* Deprecated `Symfony\Component\Lock\StoreInterface` in favor of `Symfony\Component\Lock\BlockingStoreInterface` and
100+
`Symfony\Component\Lock\PersistStoreInterface`.
101+
95102
Messenger
96103
---------
97104

UPGRADE-5.0.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ Form
208208
FrameworkBundle
209209
---------------
210210

211+
* Dropped support for booting the kernel before running `WebTestCase::createClient()`. `createClient()` will throw an
212+
exception if the kernel was already booted before.
211213
* Removed the `framework.templating` option, use Twig instead.
212214
* The project dir argument of the constructor of `AssetsInstallCommand` is required.
213215
* Removed support for `bundle:controller:action` syntax to reference controllers. Use `serviceOrFqcn::method`
@@ -299,6 +301,12 @@ Intl
299301
* Removed `Intl::getLocaleBundle()`, use `Locales` instead
300302
* Removed `Intl::getRegionBundle()`, use `Countries` instead
301303

304+
Lock
305+
----
306+
307+
* Removed `Symfony\Component\Lock\StoreInterface` in favor of `Symfony\Component\Lock\BlockingStoreInterface` and
308+
`Symfony\Component\Lock\PersistStoreInterface`.
309+
302310
Messenger
303311
---------
304312

src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected function doTearDown(): void
4040
protected static function createClient(array $options = [], array $server = [])
4141
{
4242
if (true === static::$booted) {
43-
@trigger_error(sprintf('Booting the kernel before calling %s::%s is deprecated and will throw in Symfony 5.0, the kernel should only be booted once.', __CLASS__, __METHOD__), E_USER_DEPRECATED);
43+
@trigger_error(sprintf('Booting the kernel before calling %s() is deprecated and will throw in Symfony 5.0, the kernel should only be booted once.', __METHOD__), E_USER_DEPRECATED);
4444
}
4545

4646
$kernel = static::bootKernel($options);

src/Symfony/Component/Lock/Store/CombinedStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function save(Key $key)
9898
*/
9999
public function waitAndSave(Key $key)
100100
{
101-
@trigger_error(sprintf('%s::%s has been deprecated since Symfony 4.4 and will be removed in Symfony 5.0.', \get_class($this), __METHOD__), E_USER_DEPRECATED);
101+
@trigger_error(sprintf('%s() is deprecated since Symfony 4.4 and will be removed in Symfony 5.0.', __METHOD__), E_USER_DEPRECATED);
102102
throw new NotSupportedException(sprintf('The store "%s" does not supports blocking locks.', \get_class($this)));
103103
}
104104

src/Symfony/Component/Lock/Store/MemcachedStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function save(Key $key)
7474
*/
7575
public function waitAndSave(Key $key)
7676
{
77-
@trigger_error(sprintf('%s has been deprecated since Symfony 4.4 and will be removed in Symfony 5.0.', __METHOD__));
77+
@trigger_error(sprintf('%s() is deprecated since Symfony 4.4 and will be removed in Symfony 5.0.', __METHOD__));
7878
throw new InvalidArgumentException(sprintf('The store "%s" does not supports blocking locks.', \get_class($this)));
7979
}
8080

src/Symfony/Component/Lock/Store/PdoStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function save(Key $key)
145145
*/
146146
public function waitAndSave(Key $key)
147147
{
148-
@trigger_error(sprintf('%s has been deprecated since Symfony 4.4 and will be removed in Symfony 5.0.', __METHOD__));
148+
@trigger_error(sprintf('%s() is deprecated since Symfony 4.4 and will be removed in Symfony 5.0.', __METHOD__));
149149
throw new NotSupportedException(sprintf('The store "%s" does not supports blocking locks.', __METHOD__));
150150
}
151151

src/Symfony/Component/Lock/Store/RedisStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function save(Key $key)
7777
*/
7878
public function waitAndSave(Key $key)
7979
{
80-
@trigger_error(sprintf('%s::%s has been deprecated since Symfony 4.4 and will be removed in Symfony 5.0.', \get_class($this), __METHOD__), E_USER_DEPRECATED);
80+
@trigger_error(sprintf('%s() is deprecated since Symfony 4.4 and will be removed in Symfony 5.0.', __METHOD__), E_USER_DEPRECATED);
8181
throw new InvalidArgumentException(sprintf('The store "%s" does not supports blocking locks.', \get_class($this)));
8282
}
8383

src/Symfony/Component/Lock/Store/ZookeeperStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function exists(Key $key): bool
8787
*/
8888
public function waitAndSave(Key $key)
8989
{
90-
@trigger_error(sprintf('%s::%s has been deprecated since Symfony 4.4 and will be removed in Symfony 5.0.', \get_class($this), __METHOD__), E_USER_DEPRECATED);
90+
@trigger_error(sprintf('%s() is deprecated since Symfony 4.4 and will be removed in Symfony 5.0.', __METHOD__), E_USER_DEPRECATED);
9191
throw new NotSupportedException();
9292
}
9393

0 commit comments

Comments
 (0)