Here's a portion of a theoretical application.
First, let's set some configurations. Our Application class will extend the container class of choice, Pimple.
We'll use our container to hold our database connection as well as our user object.
Note that we're using the container in order to instantiate our User class with the MySql implementation of a data store. This lets us change the storage in one location (this config file).