Files
nextcloud-docs/developer_manual/app/appframework/api/dependencyinjection_dicontainer.rst
Bernhard Posselt a5761ca8d0 structure changes
2013-03-13 17:13:35 +01:00

23 lines
488 B
ReStructuredText

DIContainer
===========
This class extends Pimple (http://pimple.sensiolabs.org/) for reusability
To use this class, extend your own container from this.
Should you require it
you can overwrite the dependencies with your own classes by simply redefining
a dependency
.. php:namespace:: OCA\AppFramework\DependencyInjection
.. php:class:: DIContainer
.. php:method:: __construct($appName)
:param string $appName: the name of the app
Put your class dependencies in here