Skip to content

Commit 75563ba

Browse files
committed
remove AddAnnotatedClassesToCachePass and related methods
1 parent c90cd42 commit 75563ba

File tree

6 files changed

+14
-200
lines changed

6 files changed

+14
-200
lines changed

UPGRADE-8.0.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,13 @@ HttpClient
151151
* Remove support for amphp/http-client < 5
152152
* Remove setLogger() methods on decorators; configure the logger on the wrapped client directly instead
153153

154+
HttpKernel
155+
----------
156+
157+
* Remove `AddAnnotatedClassesToCachePass`
158+
* Remove `Extension::getAnnotatedClassesToCompile()` and `Extension::addAnnotatedClassesToCompile()`
159+
* Remove `Kernel::getAnnotatedClassesToCompile()` and `Kernel::setAnnotatedClassCache()`
160+
154161
Ldap
155162
----
156163

src/Symfony/Component/HttpKernel/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
CHANGELOG
22
=========
33

4+
8.0
5+
---
6+
7+
* Remove `AddAnnotatedClassesToCachePass`
8+
* Remove `Extension::getAnnotatedClassesToCompile()` and `Extension::addAnnotatedClassesToCompile()`
9+
* Remove `Kernel::getAnnotatedClassesToCompile()` and `Kernel::setAnnotatedClassCache()`
10+
411
7.3
512
---
613

src/Symfony/Component/HttpKernel/DependencyInjection/AddAnnotatedClassesToCachePass.php

Lines changed: 0 additions & 144 deletions
This file was deleted.

src/Symfony/Component/HttpKernel/DependencyInjection/Extension.php

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -22,33 +22,4 @@
2222
*/
2323
abstract class Extension extends BaseExtension
2424
{
25-
private array $annotatedClasses = [];
26-
27-
/**
28-
* Gets the annotated classes to cache.
29-
*
30-
* @return string[]
31-
*
32-
* @deprecated since Symfony 7.1, to be removed in 8.0
33-
*/
34-
public function getAnnotatedClassesToCompile(): array
35-
{
36-
trigger_deprecation('symfony/http-kernel', '7.1', 'The "%s()" method is deprecated since Symfony 7.1 and will be removed in 8.0.', __METHOD__);
37-
38-
return $this->annotatedClasses;
39-
}
40-
41-
/**
42-
* Adds annotated classes to the class cache.
43-
*
44-
* @param string[] $annotatedClasses An array of class patterns
45-
*
46-
* @deprecated since Symfony 7.1, to be removed in 8.0
47-
*/
48-
public function addAnnotatedClassesToCompile(array $annotatedClasses): void
49-
{
50-
trigger_deprecation('symfony/http-kernel', '7.1', 'The "%s()" method is deprecated since Symfony 7.1 and will be removed in 8.0.', __METHOD__);
51-
52-
$this->annotatedClasses = array_merge($this->annotatedClasses, $annotatedClasses);
53-
}
5425
}

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -275,18 +275,6 @@ public function getContainer(): ContainerInterface
275275
return $this->container;
276276
}
277277

278-
/**
279-
* @internal
280-
*
281-
* @deprecated since Symfony 7.1, to be removed in 8.0
282-
*/
283-
public function setAnnotatedClassCache(array $annotatedClasses): void
284-
{
285-
trigger_deprecation('symfony/http-kernel', '7.1', 'The "%s()" method is deprecated since Symfony 7.1 and will be removed in 8.0.', __METHOD__);
286-
287-
file_put_contents(($this->warmupDir ?: $this->getBuildDir()).'/annotations.map', \sprintf('<?php return %s;', var_export($annotatedClasses, true)));
288-
}
289-
290278
public function getStartTime(): float
291279
{
292280
return $this->debug && null !== $this->startTime ? $this->startTime : -\INF;
@@ -313,20 +301,6 @@ public function getCharset(): string
313301
return 'UTF-8';
314302
}
315303

316-
/**
317-
* Gets the patterns defining the classes to parse and cache for annotations.
318-
*
319-
* @return string[]
320-
*
321-
* @deprecated since Symfony 7.1, to be removed in 8.0
322-
*/
323-
public function getAnnotatedClassesToCompile(): array
324-
{
325-
trigger_deprecation('symfony/http-kernel', '7.1', 'The "%s()" method is deprecated since Symfony 7.1 and will be removed in 8.0.', __METHOD__);
326-
327-
return [];
328-
}
329-
330304
/**
331305
* Initializes bundles.
332306
*

src/Symfony/Component/HttpKernel/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"require": {
1919
"php": ">=8.4",
2020
"psr/log": "^1|^2|^3",
21-
"symfony/deprecation-contracts": "^2.5|^3",
2221
"symfony/error-handler": "^7.4|^8.0",
2322
"symfony/event-dispatcher": "^7.4|^8.0",
2423
"symfony/http-foundation": "^7.4|^8.0",

0 commit comments

Comments
 (0)