Skip to content

Commit

Permalink
Add note about extending controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Jan 16, 2024
1 parent c4647cf commit a9be6e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/22.upgrading/01.46-to-50/02.guide/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ A few other key point to know:
2. Controller resolution should be updated to make use of [PHP’s `::class` operator](https://www.slimframework.com/docs/v4/objects/routing.html#container-resolution)
3. Middleware must now be called by their class name. For example, `authGuard` must be updated to `UserFrosting\Sprinkle\Account\Authenticate\AuthGuard::class`


### Sprunje

The sprunje class used to accept options in the constructor. To make it easier to [inject dependencies](/dependency-injection/the-di-container), options should now be defined using the `setOptions` method. Sprunje should now be injected into controllers,
Expand Down Expand Up @@ -271,6 +270,8 @@ Simple changes have been made to controller classes :

See [Controller classes](/routes-and-controllers/controller-classes) guide for more information.

[note]If your sprinkle extends a controller class from a default sprinkle instead of `SimpleController`, note that **every** controller classes from default sprinkles have been moved, renamed and rewritten as *Action classes*. Make sure to check out the sprinkle source code to find out how to update your sprinkle.[/note]

### Bakery

Simple changes have been made to bakery commands :
Expand Down

0 comments on commit a9be6e5

Please sign in to comment.