Fix the use of the `codebox()` macro in cache documentation
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 16 Dec 2021 14:31:43 +0000 (15:31 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 16 Dec 2021 14:33:07 +0000 (15:33 +0100)
docs/php/api/caches_persistent-caches.md
docs/php/api/caches_runtime-caches.md

index 213073d2e348baf0a8ee79f7ce39337bdf03020c..09951688c5887e51e0876717aa3e7acda524e50e 100644 (file)
@@ -27,9 +27,9 @@ that already implements the mandatory interface [ICacheBuilder](https://github.c
 
 
 {jinja{ codebox(
-"php",
-"php/api/caches/ExampleCacheBuilder.class.php",
-"files/lib/system/cache/builder/ExampleCacheBuilder.class.php"
+    title="files/lib/system/cache/builder/ExampleCacheBuilder.class.php",
+    language="php",
+    filepath="php/api/caches/ExampleCacheBuilder.class.php",
 ) }}
 
 Reading data from your cache builder is quite simple and follows a consistent
index 77d97cea6698b614fdc1d9c79c96b6d5c73cd1c7..172e3f2e2f4c8029220fdfad7283963223a56529 100644 (file)
@@ -50,7 +50,7 @@ $users = UserRuntimeCache::getInstance()->getObjects([3, 4]);
 ## Example
 
 {jinja{ codebox(
-   "php",
-   "php/api/caches/UserRuntimeCache.class.php",
-   "files/lib/system/cache/runtime/UserRuntimeCache.class.php"
+    title="files/lib/system/cache/runtime/UserRuntimeCache.class.php",
+    language="php",
+    filepath="php/api/caches/UserRuntimeCache.class.php",
 ) }}