fix some typos and link to a blogpost about middleware pattern
This commit is contained in:
parent
d81535c3c0
commit
68d4abab8f
3 changed files with 5 additions and 4 deletions
|
@ -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
|
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
|
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
|
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.
|
response after it gets created by our handlers.
|
||||||
|
|
|
@ -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).
|
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
|
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
|
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.
|
## Getting started.
|
||||||
|
|
||||||
|
|
4
Vagrantfile
vendored
4
Vagrantfile
vendored
|
@ -4,8 +4,8 @@
|
||||||
Vagrant.configure("2") do |config|
|
Vagrant.configure("2") do |config|
|
||||||
config.vm.box = "archlinux/archlinux"
|
config.vm.box = "archlinux/archlinux"
|
||||||
config.vm.provider "virtualbox" do |v|
|
config.vm.provider "virtualbox" do |v|
|
||||||
v.memory = 2048
|
v.memory = 256
|
||||||
v.cpus = 4
|
v.cpus = 2
|
||||||
end
|
end
|
||||||
config.vm.network "forwarded_port", guest: 1235, host: 1235
|
config.vm.network "forwarded_port", guest: 1235, host: 1235
|
||||||
config.vm.network "forwarded_port", guest: 22, host: 2200, id: 'ssh'
|
config.vm.network "forwarded_port", guest: 22, host: 2200, id: 'ssh'
|
||||||
|
|
Loading…
Reference in a new issue