Commit Graph

21 Commits

Author SHA1 Message Date
Christoph Wurst
236828b932 feat(devmanual): Optional dependency injection services
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-11-03 12:35:26 +01:00
Simon L
dabcab6678 Merge pull request #10633 from fsamapoor/patch-5
Update dependency_injection.rst
2023-06-17 16:53:55 +02:00
Faraz Samapoor
e047118593 Update dependency_injection.rst
Removes repeated DI parameter.

Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
2023-06-16 00:39:02 +03:30
Faraz Samapoor
82df133ca2 Update dependency_injection.rst
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
2023-06-16 00:17:49 +03:30
Ferdinand Thiessen
76ec58bf9b fix(developer): Replace deprecated dependency injection code with the current alternative
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2023-01-27 17:59:58 +01:00
Christoph Wurst
281b4c99a4 Merge pull request #9560 from nextcloud/feat/dev-manual/di-method-injection
feat(dev-manual): Document DI for controller methods
2023-01-18 17:04:01 +01:00
Christoph Wurst
7175695369 chore(dev-manual): Remove opening tags from php snippets
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-01-17 18:15:49 +01:00
Christoph Wurst
a7a5fab0b1 feat(dev-manual): Document DI for controller methods
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-01-16 11:28:38 +01:00
Christian Wolf
e0afb73e7c Removed wrong capitalization and few bugs in Sphinx build
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-11-03 15:43:40 +01:00
Christoph Wurst
1053dfadf7 Document deprecation of pascal case DI container parameters
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-11-03 14:55:35 +01:00
Christoph Wurst
4a04e383ec Update DI parameters, aliases and services documentation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-11-02 19:32:21 +01:00
Carl Schwan
4b23f5d53e Add section about OCP\Server::get
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-10 00:12:22 +02:00
Carl Schwan
fed2de15da Modernize dependency injection section
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-10 00:08:04 +02:00
rakekniven
c384544090 Fixed link (#7731)
Fixes #7169 

Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
2021-12-03 11:22:02 +01:00
Christian Wolf
39db36fdb2 Fixed some more links in the dev manual
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-11-24 14:50:02 +01:00
Carl Schwan
bd3c9594bf Various code modernisation in code examples
* Type hinting
* Use of ::class instead of string

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-10-14 11:17:39 +02:00
Aeredren
f23b1a5245 Correct value for appname variable
Here $class2->appName come from $AppName which come from $app = new \OCP\AppFramework\App('myapp');
So it should be 'myapp' and not 'appname'
2021-10-08 15:30:52 +02:00
J0WI
122ed88e53 Update urls to HTTPS
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2020-09-17 20:33:30 +02:00
Glen
67cf4b1729 Update dependency_injection.rst
Dependency Injection and the art of Services and Containers Tutorial is unavailable due to being private on YouTube. Removed the link.

Signed-off-by: Glen Clark <glenuk@gmail.com>
2020-08-18 08:38:18 +01:00
Christoph Wurst
eb3228f05c Document PSR-11 integration
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-07-16 14:34:41 +02:00
Christoph Wurst
2647cd93c7 Restructure the dev manual
This moves lots of pages around. The high-level changes are

* Better main sections, so it's more *general*, *into*, *basics* and *details*
* Move more general topics to a *Basic* section, which are not
  app-specific
* Remove app docs to the stuff that is likely used, anything else goes
  into "Digging deeper"
* Move general guides into a prologue
* Try to *compress*/combine some pages with similar content
* Try to have better consistencs on level ob abstraction across pages
* Split app development and maintenance pages into two sections
* Integrate bugtracker info into prologue
* Integrate Android pages into client APIs section

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-06-22 18:35:59 +02:00