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

Commit 832dbd4

Browse files
committed
Merge branch 'hotfix/462'
Close #462
2 parents 959ec00 + 9e77375 commit 832dbd4

File tree

5 files changed

+45
-45
lines changed

5 files changed

+45
-45
lines changed

doc/book/cookbook/autowiring-routes-and-pipelines.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ With regards to routes, there are other considerations:
182182
in use. As an example, each of the currently supported router implementations
183183
has a different syntax for placeholders:
184184

185-
- `/user/:id` + "constraints" configuration to define constraints (zend-router)
186-
- `/user/{id}` + "tokens" configuration to define constraints (Aura.Router)
187-
- `/user/{id:\d+}` (FastRoute)
185+
- `/user/:id` + "constraints" configuration to define constraints (zend-router)
186+
- `/user/{id}` + "tokens" configuration to define constraints (Aura.Router)
187+
- `/user/{id:\d+}` (FastRoute)
188188

189189
- Your application may have specific routing considerations or design.
190190

@@ -204,7 +204,7 @@ delegator factory by wiring it into their own configuration.
204204

205205
- We recommend using delegator factories for the purpose of autowiring routes,
206206
and, with caveats, pipeline middleware:
207-
- The pipeline should be created exactly once, so calls to `pipe()` should
208-
occur in exactly _one_ delegator factory.
207+
- The pipeline should be created exactly once, so calls to `pipe()` should
208+
occur in exactly _one_ delegator factory.
209209
- Distributable packages should create a delegator factory for _routes only_,
210210
but _should not_ register the delegator factory by default.

doc/book/features/application.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ where:
129129
`Zend\Expressive\Router\Route` instance.
130130
- `$middleware` **must** be present if `$pathOrRoute` is a string path, and
131131
**must** be:
132-
- a callable;
133-
- a service name that resolves to valid middleware in the container;
134-
- a fully qualified class name of a constructor-less class;
135-
- an array of any of the above; these will be composed in order into a
136-
`Zend\Stratigility\MiddlewarePipe` instance.
132+
- a callable;
133+
- a service name that resolves to valid middleware in the container;
134+
- a fully qualified class name of a constructor-less class;
135+
- an array of any of the above; these will be composed in order into a
136+
`Zend\Stratigility\MiddlewarePipe` instance.
137137
- `$methods` must be an array of HTTP methods valid for the given path and
138138
middleware. If null, it assumes any method is valid.
139139
- `$name` is the optional name for the route, and is used when generating a URI
@@ -180,11 +180,11 @@ where:
180180
composed container.
181181
- `$middleware` is required if `$pathOrMiddleware` is a string URI path. It can
182182
be one of:
183-
- a callable;
184-
- a service name that resolves to valid middleware in the container;
185-
- a fully qualified class name of a constructor-less class;
186-
- an array of any of the above; these will be composed in order into a
187-
`Zend\Stratigility\MiddlewarePipe` instance.
183+
- a callable;
184+
- a service name that resolves to valid middleware in the container;
185+
- a fully qualified class name of a constructor-less class;
186+
- an array of any of the above; these will be composed in order into a
187+
`Zend\Stratigility\MiddlewarePipe` instance.
188188

189189
Unlike `Zend\Stratigility\MiddlewarePipe`, `Application::pipe()` *allows
190190
fetching middleware by service name*. This facility allows lazy-loading of
@@ -238,15 +238,15 @@ methods for retrieving them. They include:
238238
[emitter](https://github.com/zendframework/zend-diactoros/blob/master/doc/book/emitting-responses.md),
239239
typically a `Zend\Expressive\Emitter\EmitterStack` instance.
240240
- `getDefaultDelegate()`: (Since 2.0) retrieves the default delegate to use when the internal middleware pipeline is exhausted without returning a response. If none is provided at instantiation, this method will do one of the following:
241-
- If no container is composed, instanatiates a
242-
`Zend\Expressive\Delegate\NotFoundDelegate` using the composed response
243-
prototype only.
244-
- If a container is composed, but does not have the
245-
`Zend\Expressive\Delegate\DefaultDelegate` service, it creates and invokes an
246-
instance of `Zend\Expressive\Container\NotFoundDelegateFactory`, passing it
247-
the composed container, and uses the value created.
248-
- If a container is composed and contains the `Zend\Expressive\Delegate\DefaultDelegate`
249-
service, it returns that.
241+
- If no container is composed, instanatiates a
242+
`Zend\Expressive\Delegate\NotFoundDelegate` using the composed response
243+
prototype only.
244+
- If a container is composed, but does not have the
245+
`Zend\Expressive\Delegate\DefaultDelegate` service, it creates and invokes an
246+
instance of `Zend\Expressive\Container\NotFoundDelegateFactory`, passing it
247+
the composed container, and uses the value created.
248+
- If a container is composed and contains the `Zend\Expressive\Delegate\DefaultDelegate`
249+
service, it returns that.
250250
- `getFinalHandler(ResponseInterface $response = null)`: (**REMOVED in version 2.0**)
251251
retrieves the final handler instance. This is middleware with the signature
252252
`function ($request, $response, $error = null)`, and it is invoked when the

doc/book/features/helpers/url-helper.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@ Where:
3838
request.
3939
- `$rotueParams` is an array of substitutions to use for the provided route, with the
4040
following behavior:
41-
- If a `RouteResult` is composed in the helper, and the `$routeName` matches
42-
it, the provided `$params` will be merged with any matched parameters, with
43-
those provided taking precedence.
44-
- If a `RouteResult` is not composed, or if the composed result does not match
45-
the provided `$routeName`, then only the `$params` provided will be used
46-
for substitutions.
47-
- If no `$params` are provided, and the `$routeName` matches the currently
48-
matched route, then any matched parameters found will be used.
49-
parameters found will be used.
50-
- If no `$params` are provided, and the `$routeName` does not match the
51-
currently matched route, or if no route result is present, then no
52-
substitutions will be made.
41+
- If a `RouteResult` is composed in the helper, and the `$routeName` matches
42+
it, the provided `$params` will be merged with any matched parameters, with
43+
those provided taking precedence.
44+
- If a `RouteResult` is not composed, or if the composed result does not match
45+
the provided `$routeName`, then only the `$params` provided will be used
46+
for substitutions.
47+
- If no `$params` are provided, and the `$routeName` matches the currently
48+
matched route, then any matched parameters found will be used.
49+
parameters found will be used.
50+
- If no `$params` are provided, and the `$routeName` does not match the
51+
currently matched route, or if no route result is present, then no
52+
substitutions will be made.
5353
- `$queryParams` is an array of query string arguments to include in the
5454
generated URI.
5555
- `$fragmentIdentifier` is a string to use as the URI fragment.

doc/book/features/modular-applications.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ two packages within the default skeleton application:
1010
- [zendframework/zend-config-aggregator](https://github.com/zendframework/zend-config-aggregator),
1111
which provides features for aggregating configuration from a variety of
1212
sources, including:
13-
- PHP files globbed from the filesystem that return an array of configuration.
14-
- [zend-config](https://docs.zendframework.com/zend-config)-compatible
15-
configuration files globbed from the filesystem.
16-
- Configuration provider classes; these are invokable classes which return an
17-
array of configuration.
13+
- PHP files globbed from the filesystem that return an array of configuration.
14+
- [zend-config](https://docs.zendframework.com/zend-config)-compatible
15+
configuration files globbed from the filesystem.
16+
- Configuration provider classes; these are invokable classes which return an
17+
array of configuration.
1818
- [zendframework/zend-component-installer](https://github.com/zendframework/zend-component-installer),
1919
a Composer plugin that looks for an `extra.zf.config-provider` entry in a
2020
package to install, and, if found, adds an entry for that provider to the

doc/book/reference/migration/to-v2.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -585,10 +585,10 @@ The ramifications for end users are as follows:
585585

586586
- We have removed the following classes, which either provided final handlers,
587587
or acted as factories for them:
588-
- `Zend\Expressive\TemplatedErrorHandler`
589-
- `Zend\Expressive\WhoopsErrorHandler`
590-
- `Zend\Expressive\Container\TemplatedErrorHandlerFactory`
591-
- `Zend\Expressive\Container\WhoopsErrorHandlerFactory`
588+
- `Zend\Expressive\TemplatedErrorHandler`
589+
- `Zend\Expressive\WhoopsErrorHandler`
590+
- `Zend\Expressive\Container\TemplatedErrorHandlerFactory`
591+
- `Zend\Expressive\Container\WhoopsErrorHandlerFactory`
592592

593593
If you use the `vendor/bin/expressive-pipeline-from-config` tool to migrate your
594594
application to programmatic pipelines, as described below, the `DefaultDelegate`

0 commit comments

Comments
 (0)