Sometimes you need to re-use some functionality in multiple places like commands, controller functions or other specific events.
Instead of copying the code and producing duplicate code a good solution are Utility Classes.
In this talk I will go more in depth in the following topics:
Why we need PHP Namespaces
How are PHP Namespaces set up in CakePHP
How do I use PHP Namespaces
Watch video CakeFest Virtual 2021 Day 2 - How to re use code: Utility Classes and PHP Namespaces - Kevin Pfeifer online without registration, duration hours minute second in high quality. This video was added by user CakePHP 14 October 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 720 once and liked it 14 people.