File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the Symfony package.
5
+ *
6
+ * (c) Fabien Potencier <fabien@symfony.com>
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ namespace Symfony \Component \HttpKernel \Attribute ;
13
+
14
+ /**
15
+ * Service tag to autoconfigure controllers.
16
+ */
17
+ #[\Attribute(\Attribute::TARGET_CLASS )]
18
+ class AsController
19
+ {
20
+ public function __construct ()
21
+ {
22
+ }
23
+ }
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ CHANGELOG
11
11
* Deprecate returning a ` ContainerBuilder ` from ` KernelInterface::registerContainerConfiguration() `
12
12
* Deprecate ` HttpKernelInterface::MASTER_REQUEST ` and add ` HttpKernelInterface::MAIN_REQUEST ` as replacement
13
13
* Deprecate ` KernelEvent::isMasterRequest() ` and add ` isMainRequest() ` as replacement
14
+ * Add ` #[AsController] ` attribute for declaring standalone controllers on PHP 8
14
15
15
16
5.2.0
16
17
-----
You can’t perform that action at this time.
0 commit comments