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

Commit 78dc0dc

Browse files
committed
Removed white characters at the end of the line in the docs
1 parent e4592b5 commit 78dc0dc

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

docs/book/config-abstract-factory.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
You can simplify the process of creating factories by registering
66
`Zend\ServiceManager\AbstractFactory\ConfigAbstractFactory` with your service
77
manager instance. This allows you to define services using a configuration map,
8-
rather than having to create separate factories for each of your services.
8+
rather than having to create separate factories for each of your services.
99

1010
## Enabling the ConfigAbstractFactory
1111

12-
Enable the `ConfigAbstractFactory` in the same way that you would enable
12+
Enable the `ConfigAbstractFactory` in the same way that you would enable
1313
any other abstract factory.
1414

1515
Programmatically:
@@ -75,7 +75,7 @@ return [
7575
ConfigAbstractFactory::class => [
7676
MyInvokableClass::class => [],
7777
MySimpleClass::class => [
78-
Logger::class,
78+
Logger::class,
7979
],
8080
Logger::class => [
8181
Handler::class,
@@ -139,6 +139,6 @@ return [
139139
'factories' => [
140140
Adapter::class => AdapterFactory::class, // normal factory not using above config
141141
],
142-
],
142+
],
143143
],
144144
```

docs/book/configuring-the-service-manager.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class MyAbstractFactory implements AbstractFactoryInterface
174174
{
175175
return in_array('Traversable', class_implements($requestedName), true);
176176
}
177-
177+
178178
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
179179
{
180180
return $requestedName();
@@ -233,7 +233,7 @@ $serviceManager = new ServiceManager([
233233
'factories' => [
234234
stdClass::class => InvokableFactory::class
235235
],
236-
236+
237237
'aliases' => [
238238
'A' => stdClass::class,
239239
'B' => 'A'
@@ -328,11 +328,11 @@ The primary issues with initializers are:
328328
the constructor, it means that the object may be in an "incomplete state". If
329329
for any reason the initializer is not run (if it was not correctly registered
330330
for instance), bugs ranging from the subtle to fatal can be introduced.
331-
331+
332332
Instead, we encourage you to inject all necessary dependencies via
333333
the constructor, using factories. If some dependencies use setter or interface
334334
injection, use delegator factories.
335-
335+
336336
If a given service has too many dependencies, then it may be a sign that you
337337
need to split this service into smaller, more focused services.
338338

docs/book/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="container">
22
<div class="jumbotron">
33
<h1>zend-servicemanager</h1>
4-
4+
55
<p>Factory-Driven Dependency Injection Container</p>
66

77
<pre><code class="language-bash">$ composer require zendframework/zend-servicemanager</code></pre>

docs/book/plugin-managers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ValidatorPluginManager extends AbstractPluginManager
3939
if ($instance instanceof Foo || $instance instanceof Bar) {
4040
return;
4141
}
42-
42+
4343
throw new InvalidServiceException('This is not a valid service!');
4444
}
4545
}

0 commit comments

Comments
 (0)