From e42d4ad7f9138056524157faab2b63668d4d7074 Mon Sep 17 00:00:00 2001 From: Yuriy Tkachenko Date: Mon, 28 Mar 2016 21:53:16 +0400 Subject: [PATCH] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3876db1..75f99be 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,9 @@ class Greeting } } -Flight::route('/', array(new Greeting, 'hello')); +$greeting = new Greeting(); + +Flight::route('/', array($greeting, 'hello')); ``` Routes are matched in the order they are defined. The first route to match a