Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions developer_manual/app/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ App development
publicpage
testing
coding-style
psr
../api


12 changes: 12 additions & 0 deletions developer_manual/app/psr.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
===
PSR
===

.. sectionauthor:: Christoph Wurst <[email protected]>

On this page you find information about the implemented `php standards recommendations <https://www.php-fig.org/psr/>`_ 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.