This is where the problem lay.

You were including "index.php", which was in the include path (it's in public/index.php). As a result, the index file was getting called twice.

If we properly namespace here, the autoloader does its job.