Just an update on the issue with $psr4 array. This problem was fixed in the latest develop branch, so if you use the latest CodeIgniter version, then all should work just fine. If you have to stick with 4.0.2 for now, then the solution for you is one post above.