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;
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;