Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merged branch hrbonz/part12_fixes (PR #19)
Commits ------- 400c087 add framework code as people would probably modify it following first code example (putting object creations in src/Simplex/Framework.php) de69a87 HttpKernel name can't be imported twice, if importing only Symfony\Component\HttpKernel\HttpKernel there will be problems later with HttpKernel subclasses (HttpKernel\Controller\ControllerResolver first and the others following). Could use 'use ... as ...' but I don't like it. Discussion ---------- Part12 fixes for clarity Fixed two things : * the first example didn't work, the duplicate name '`HttpKernel`' makes the import impossible. I understand that this example is not supposed to be followed but it's here and most people will make the modifications to `src/Simplex/Framework.php` and `web/front.php`. For the sake of don-t-panic-the-newbie, all the code presented should work ::) * Linked to the first point, expose the final code of `src/Simplex/Framework.php` to make sure everybody gets it.
- Loading branch information