diff --git a/14-middleware.md b/14-middleware.md index 81f82a5..bddfead 100644 --- a/14-middleware.md +++ b/14-middleware.md @@ -7,7 +7,8 @@ a bit more about what this interface does and why it is used in many application The Middlewares are basically a number of wrappers that stand between the client and your application. Each request gets passed through all the middlewares, gets handled by our controllers and then the response gets passed back through all -the middlewars to the client/emitter. +the middlewars to the client/emitter. You can check out [this Blogpost](https://doeken.org/blog/middleware-pattern-in-php) +for a more in depth explanation of the middleware pattern. So every Middleware can modify the request before it goes on to the next middleware (and finally the handler) and the response after it gets created by our handlers. diff --git a/README.md b/README.md index a072b20..951a018 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ actually solve for you. This tutorial is based on the great [tutorial by Patrick Louys](https://github.com/PatrickLouys/no-framework-tutorial). My version is way more opiniated and uses some newer PHP features. But you should still check out his tutorial which is still very great and helped me personally a lot in taking the next step in my knowledge about PHP development. There is -also an [amazon book](https://patricklouys.com/professional-php/) which expands on the topics covered in this tutorial. +also an [amazing book](https://patricklouys.com/professional-php/) which expands on the topics covered in this tutorial. ## Getting started. diff --git a/Vagrantfile b/Vagrantfile index 1509687..dee2435 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -4,8 +4,8 @@ Vagrant.configure("2") do |config| config.vm.box = "archlinux/archlinux" config.vm.provider "virtualbox" do |v| - v.memory = 2048 - v.cpus = 4 + v.memory = 256 + v.cpus = 2 end config.vm.network "forwarded_port", guest: 1235, host: 1235 config.vm.network "forwarded_port", guest: 22, host: 2200, id: 'ssh'