Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
systream authored Nov 1, 2016
1 parent 71fabe8 commit 5b9698d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
[![Build Status](https://travis-ci.org/systream/feature-switch.svg?branch=master)](https://travis-ci.org/systream/feature-switch)

0 comments on commit 5b9698d

Please sign in to comment.