You might think that our framework is already pretty solid and you are probably right. But let's see how we can improve it nonetheless.
Right now, all our examples use procedural code, but remember that controllers can be any valid PHP callbacks.
Let's convert our controller to a proper class: