Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Adds CHANGELOG entry for #142
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Jan 22, 2018
1 parent a972bda commit a5bf408
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ details.

### Added

- [#142](https://github.com/zendframework/zend-stratigility/pull/142) adds a new
class, `Zend\Stratigility\Middleware\HostMiddlewareDecorator`, which provides
host segregation functionality for middleware, allowing conditional execution
of middleware only if the requested host matches a configured host.

```php
// Only process $middleware if the request host matches 'example.com':
$pipeline->pipe(new HostMiddlewareDecorator('example.com', $middleware));
```

Additionally, the patch provides a utility function,
`Zend\Stratigility\host()`, to simplify the above declaration:

```php
$pipeline->pipe(host('example.com', $middleware));
```

- [#134](https://github.com/zendframework/zend-stratigility/pull/134) adds a new
class, `Zend\Stratigility\Middleware\PathMiddlewareDecorator`, which provides
path segregation functionality for middleware, replacing the functionality
Expand Down

0 comments on commit a5bf408

Please sign in to comment.