From 5e52aa3f26eb6e289beb093fcfc82ae267c9c154 Mon Sep 17 00:00:00 2001 From: Peter Gribanov Date: Fri, 8 Sep 2017 21:33:05 +0300 Subject: [PATCH] not use config.php file --- README.md | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index ff06378..1d6cd78 100644 --- a/README.md +++ b/README.md @@ -590,15 +590,6 @@ function config() **Good:** -Create PHP configuration file or something else - -```php -// config.php -return [ - 'foo' => 'bar', -]; -``` - ```php class Configuration { @@ -616,10 +607,12 @@ class Configuration } ``` -Load configuration from file and create instance of `Configuration` class +Load configuration and create instance of `Configuration` class ```php -$configuration = new Configuration($configuration); +$configuration = new Configuration([ + 'foo' => 'bar', +]); ``` And now you must use instance of `Configuration` in your application.