Include utility class all over the application cakephp 3
问题 I have custom utility class that contains some methods for general use and it is located in src/Utility/UtilityClass. I can include the Utility class in controller .e.g. use App\Utility\ArrayUtil; and then call the class in my controllers e.g. ArrayUtil::myMethod(); And it works. I need to include the UtilityClass in bootstrap so it applies all over the application so I can reuse it in models, templates and other controllers as well. I tried to load it in config/bootstrap.php but I get this