Suppose you are building a web application that is going to be a packaged product one day, one that users will want to be able to extend and customize.
It comes with
You could have a loader class that will decide which class to instance:
Loader::instance()->load('Frontend')