From 140868b257ffae0d66cd8e11b2c7f7761094c2a8 Mon Sep 17 00:00:00 2001 From: Franz Holzinger Date: Sat, 5 Mar 2022 19:22:15 +0100 Subject: [PATCH] add the used namespace to the examples (#1745) * add the used namespace to the examples * add interface namespace * alphabetical order (cherry picked from commit f88dc848e2fdf1fce4f307f783606ba9b13b5c50) --- Documentation/ApiOverview/LockingApi/Index.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/ApiOverview/LockingApi/Index.rst b/Documentation/ApiOverview/LockingApi/Index.rst index b6c705d19e..e44891bcc1 100644 --- a/Documentation/ApiOverview/LockingApi/Index.rst +++ b/Documentation/ApiOverview/LockingApi/Index.rst @@ -158,6 +158,10 @@ Acquire and use an exclusive, blocking lock: use TYPO3\CMS\Core\Locking\LockFactory; // ... + use TYPO3\CMS\Core\Locking\LockingStrategyInterface; + use TYPO3\CMS\Core\Locking\LockFactory; + // ... + $lockFactory = GeneralUtility::makeInstance(LockFactory::class); // createLocker will return an instance of class which implements @@ -185,6 +189,10 @@ Acquire and use an exclusive, non-blocking lock: use TYPO3\CMS\Core\Locking\LockFactory; // ... + use TYPO3\CMS\Core\Locking\LockingStrategyInterface; + use TYPO3\CMS\Core\Locking\LockFactory; + // ... + $lockFactory = GeneralUtility::makeInstance(LockFactory::class); // get lock strategy that supports exclusive, shared and non-blocking