You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -51,5 +51,5 @@ class DoctrineDataCollector extends DataCollector
15
-
* @return void
14
+
@@ -57,5 +57,5 @@ class DoctrineDataCollector extends DataCollector
15
+
* @deprecated since Symfony 6.4, use a DebugDataHolder instead.
16
16
*/
17
17
- public function addLogger(string $name, DebugStack $logger)
18
18
+ public function addLogger(string $name, DebugStack $logger): void
19
19
{
20
-
$this->loggers[$name] = $logger;
21
-
@@ -59,5 +59,5 @@ class DoctrineDataCollector extends DataCollector
20
+
trigger_deprecation('symfony/doctrine-bridge', '6.4', '"%s()" is deprecated. Pass an instance of "%s" to the constructor instead.', __METHOD__, DebugDataHolder::class);
21
+
@@ -67,5 +67,5 @@ class DoctrineDataCollector extends DataCollector
22
22
* @return void
23
23
*/
24
24
- public function collect(Request $request, Response $response, \Throwable $exception = null)
25
25
+ public function collect(Request $request, Response $response, \Throwable $exception = null): void
26
26
{
27
27
$this->data = [
28
-
@@ -90,5 +90,5 @@ class DoctrineDataCollector extends DataCollector
28
+
@@ -98,5 +98,5 @@ class DoctrineDataCollector extends DataCollector
29
29
* @return void
30
30
*/
31
31
- public function reset()
32
32
+ public function reset(): void
33
33
{
34
34
$this->data = [];
35
-
@@ -119,5 +119,5 @@ class DoctrineDataCollector extends DataCollector
35
+
@@ -127,5 +127,5 @@ class DoctrineDataCollector extends DataCollector
trigger_deprecation('symfony/dependency-injection', '6.4', '"%s" is deprecated, use dependency injection in your fixtures instead.', ContainerAwareLoader::class);
20
+
19
21
/**
20
22
* Doctrine data fixtures loader that injects the service container into
21
23
* fixture objects that implement ContainerAwareInterface.
22
24
*
23
25
* Note: Use of this class requires the Doctrine data fixtures extension, which
24
26
* is a suggested dependency for Symfony.
27
+
*
28
+
* @deprecated since Symfony 6.4, use dependency injection in your fixtures instead
Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Console/Application.php
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,7 @@ public function get(string $name): Command
115
115
$command = parent::get($name);
116
116
117
117
if ($commandinstanceof ContainerAwareInterface) {
118
+
trigger_deprecation('symfony/dependency-injection', '6.4', 'Relying on "%s" to get the container in "%s" is deprecated, register the command as a service and use dependency injection instead.', ContainerAwareInterface::class, get_debug_type($command));
if ($controllerinstanceof ContainerAwareInterface) {
29
+
trigger_deprecation('symfony/dependency-injection', '6.4', 'Relying on "%s" to get the container in "%s" is deprecated, register the controller as a service and use dependency injection instead.', ContainerAwareInterface::class, get_debug_type($controller));
$this->expectDeprecation('Since symfony/dependency-injection 6.4: Relying on "Symfony\Component\DependencyInjection\ContainerAwareInterface" to get the container in "Symfony\Bundle\FrameworkBundle\Tests\Controller\ContainerAwareController" is deprecated, register the controller as a service and use dependency injection instead.');
$this->expectDeprecation('Since symfony/dependency-injection 6.4: Relying on "Symfony\Component\DependencyInjection\ContainerAwareInterface" to get the container in "Symfony\Bundle\FrameworkBundle\Tests\Controller\ContainerAwareController" is deprecated, register the controller as a service and use dependency injection instead.');
$this->expectDeprecation('Since symfony/dependency-injection 6.4: Relying on "Symfony\Component\DependencyInjection\ContainerAwareInterface" to get the container in "Symfony\Bundle\FrameworkBundle\Tests\Controller\ContainerAwareController" is deprecated, register the controller as a service and use dependency injection instead.');
0 commit comments