Skip to content

Commit

Permalink
[DOC] Document constructor strategy of Controllers and Providers
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Aug 11, 2023
1 parent b4ae0bf commit 95a96eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,6 @@ Caveats
`Configuration/Services.yaml` file in Flux.
* When working with custom Controller classes, make sure you declare each Controller class as `public: true` in Service
config of your extension.
* Note that both Providers and Controllers use constructor injection of dependencies. If you use custom Controllers and/or
Providers and these override the `__construct` method, make sure that they take the same arguments as the parent class and
that you call `parent::__construct()` with those arguments from your overridden `__construct` method.

0 comments on commit 95a96eb

Please sign in to comment.