mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-02 17:59:36 +07:00
Merge pull request #1958 from nextcloud/dev-psr
Document PSR implementations
This commit is contained in:
@@ -31,6 +31,7 @@ App development
|
||||
publicpage
|
||||
testing
|
||||
coding-style
|
||||
psr
|
||||
../api
|
||||
|
||||
|
||||
|
||||
12
developer_manual/app/psr.rst
Normal file
12
developer_manual/app/psr.rst
Normal file
@@ -0,0 +1,12 @@
|
||||
===
|
||||
PSR
|
||||
===
|
||||
|
||||
.. sectionauthor:: Christoph Wurst <christoph@winzerhof-wurst.at>
|
||||
|
||||
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.
|
||||
Reference in New Issue
Block a user