From 67002fb7370fb0ec0fcc80392f3c78b0e4a94ef2 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Fri, 10 Apr 2020 16:34:16 +0200 Subject: [PATCH] Document PSR implementations Signed-off-by: Christoph Wurst --- developer_manual/app/index.rst | 1 + developer_manual/app/psr.rst | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 developer_manual/app/psr.rst diff --git a/developer_manual/app/index.rst b/developer_manual/app/index.rst index cd62621be..c6a018b1a 100644 --- a/developer_manual/app/index.rst +++ b/developer_manual/app/index.rst @@ -31,6 +31,7 @@ App development publicpage testing coding-style + psr ../api diff --git a/developer_manual/app/psr.rst b/developer_manual/app/psr.rst new file mode 100644 index 000000000..83b18f93b --- /dev/null +++ b/developer_manual/app/psr.rst @@ -0,0 +1,12 @@ +=== +PSR +=== + +.. sectionauthor:: Christoph Wurst + +On this page you find information about the implemented `php standards recommendations `_ in Nextcloud. + +PSR-3: Logger Interface +----------------------- + +As of Nextcloud 19, the dependency injection container can inject an instance of a ``\Psr\Log\LoggerInterface``. This is merely a wrapper of the existing (and strongly typed) ``\OCP\ILogger``. Apps may still use the Nextcloud logger, but the PSR-3 implementation shall easy the integration of 3rd party libraries that require the PSR-3 logger.