mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 18:26:42 +07:00
23 lines
488 B
ReStructuredText
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
|