Skip to content

Commit 97a168c

Browse files
[Cache] Mutate annotation to attribute
1 parent a7dd42a commit 97a168c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cache.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -898,9 +898,7 @@ In the following example, the value is requested from a controller::
898898

899899
class CacheController extends AbstractController
900900
{
901-
/**
902-
* @Route("/cache", name="cache")
903-
*/
901+
#[Route('/cache', name: 'cache')]
904902
public function index(CacheInterface $asyncCache): Response
905903
{
906904
// pass to the cache the service method that refreshes the item

0 commit comments

Comments
 (0)