Understand the Silex Application interface
masterThe Application class is the primary entry point for Silex. It implements Symfony's HttpKernelInterface, meaning you can pass a Request object to the handle method to receive a Response object.
Because Application extends the Pimple service container, you can use it to both read and replace any service within the application. It also utilizes the EventDispatcher to manage lifecycle events such as fetching the Request, converting string responses to Response objects, handling exceptions, and executing middleware (before/after events).