From 5b9698d43bb513a92a1730f5b8c9ad45f97a3a71 Mon Sep 17 00:00:00 2001 From: Peter Tihanyi Date: Tue, 1 Nov 2016 21:31:21 +0100 Subject: [PATCH] Fix readme --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5c45457..95e52fc 100644 --- a/README.md +++ b/README.md @@ -119,13 +119,13 @@ $feature2 = FeatureSwitch::buildFeature('another_bar_feature', false); // disabl ### Container ```php -$route = new Router(); -$route->addRoute(new SimpleRouting('/foo', new TestController())); -$route->addRoute(new FinalMatchRouting(new NotFoundController())); - -$serverRequest = ServerRequestFactory::fromGlobals(); -$route->dipatch($serverRequest) +$featureSwitch = new FeatureSwitch(); +$featureSwitch->addFeature(FeatureSwitch::buildFeature('foo', true)); + +$feature = new Feature('bar2'); +$feature->addSwitcher(new AB()); +$featureSwitch->addFeature($feature); ``` ```php @@ -146,4 +146,4 @@ $featureSwitch['foo']->isEnabled(); ## Test -[![Build Status](https://travis-ci.org/systream/feature-switch.svg?branch=master)](https://travis-ci.org/systream/feature-switch) \ No newline at end of file +[![Build Status](https://travis-ci.org/systream/feature-switch.svg?branch=master)](https://travis-ci.org/systream/feature-switch)