8000 Deprecate `Symfony\Bundle\FrameworkBundle\Controller\Controller` · symfony/symfony@f74d509 · GitHub
[go: up one dir, main page]

Skip to content

Commit f74d509

Browse files
committed
Deprecate Symfony\Bundle\FrameworkBundle\Controller\Controller
1 parent 6a4de22 commit f74d509

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

UPGRADE-5.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ FrameworkBundle
9191
* Removed `Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser`.
9292
* Warming up a router in `RouterCacheWarmer` that does not implement the `WarmableInterface` is not supported anymore.
9393
* The `RequestDataCollector` class has been removed. Use the `Symfony\Component\HttpKernel\DataCollector\RequestDataCollector` class instead.
94+
* Removed `Symfony\Bundle\FrameworkBundle\Controller\Controller`. Use `Symfony\Bundle\FrameworkBundle\Controller\AbstractController` instead.
9495

9596
HttpFoundation
9697
--------------

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CHANGELOG
88
* Allowed configuring PDO-based cache pools via a new `cache.adapter.pdo` abstract service
99
* Deprecated auto-injection of the container in AbstractController instances, register them as service subscribers instead
1010
* Deprecated processing of services tagged `security.expression_language_provider` in favor of a new `AddExpressionLanguageProvidersPass` in SecurityBundle.
11+
* Deprecated the `Symfony\Bundle\FrameworkBundle\Controller\Controller` class in favor of `Symfony\Bundle\FrameworkBundle\Controller\AbstractController`.
1112
* Enabled autoconfiguration for `Psr\Log\LoggerAwareInterface`
1213

1314
4.1.0

src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@
1414
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
1515
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
1616

17+
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.2. Use %s instead.', Controller::class, AbstractController::class), E_USER_DEPRECATED);
18+
1719
/**
1820
* Controller is a simple implementation of a Controller.
1921
*
2022
* It provides methods to common features needed in controllers.
2123
*
24+
* @deprecated since Symfony 4.2. Use {@see AbstractController} instead.
25+
*
2226
* @author Fabien Potencier <fabien@symfony.com>
2327
*/
2428
abstract class Controller implements ContainerAwareInterface

src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
1515

16+
/**
17+
* @group legacy
18+
*/
1619
class ControllerTest extends ControllerTraitTest
1720
{
1821
protected function createController()

0 commit comments

Comments
 (0)
0