LabiciIvan / php-api-nutritional-project

A PHP API nutritional project
0 stars 0 forks source link

Create Utilities directory and utilities methods #6

Closed LabiciIvan closed 3 months ago

LabiciIvan commented 3 months ago

Description

Create a Utilities directory.

The Utilities directory is responsible with holding static methods which are reusable and it will not require to instantiate object of the specific class in order to use those methods.

Create a Response class which will contain a static sendResponse() method.

Modify the Application class to use the sendResponse() method instead of the simple echo;