CakePHP 4 - Using Dependency Injection to move Controller Action code to Service Class

Опубликовано: 25 Март 2026
на канале: James McDonald
671
7

Using Dependency Injection with a CakePHP 4

1. CakePHP 4 Command example,
2. Defer Controller action logic to a Service class.

Code: https://github.com/toggenation/cakeph...

00:00 Intro & Information re project
03:23 Add Dependency Injection to Commands
06:40 Add DI to Controller
10:23 Modify code to defer all action logic to Service class
12:09 Passing paramater and query string to Service class