Skip to content

Commit 377d585

Browse files
committed
Merge branch '3.4' into 4.3
* 3.4: Fixed many spelling issues
2 parents b3c5c7d + c4fb50d commit 377d585

35 files changed

+124
-117
lines changed

bundles/best_practices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ A namespace becomes a bundle as soon as you add a bundle class to it. The
2626
bundle class name must follow these rules:
2727

2828
* Use only alphanumeric characters and underscores;
29-
* Use a StudlyCaps name (i.e. camelCase with the first letter uppercased);
29+
* Use a StudlyCaps name (i.e. camelCase with an uppercase first letter);
3030
* Use a descriptive and short name (no more than two words);
3131
* Prefix the name with the concatenation of the vendor (and optionally the
3232
category namespaces);

components/asset.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ suffix to any asset path::
119119
echo $package->getUrl('image.png');
120120
// result: image.png?v1
121121

122-
In case you want to modify the version format, pass a sprintf-compatible format
123-
string as the second argument of the ``StaticVersionStrategy`` constructor::
122+
In case you want to modify the version format, pass a ``sprintf``-compatible
123+
format string as the second argument of the ``StaticVersionStrategy``
124+
constructor::
124125

125126
// puts the 'version' word before the version value
126127
$package = new Package(new StaticVersionStrategy('v1', '%s?version=%s'));

components/config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The Config Component
66
====================
77

88
The Config component provides several classes to help you find, load,
9-
combine, autofill and validate configuration values of any kind, whatever
9+
combine, fill and validate configuration values of any kind, whatever
1010
their source may be (YAML, XML, INI files, or for instance a database).
1111

1212
Installation

components/console/helpers/processhelper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ useful information about process status.
99

1010
To display process details, use the :class:`Symfony\\Component\\Console\\Helper\\ProcessHelper`
1111
and run your command with verbosity. For example, running the following code with
12-
a very verbose verbosity (e.g. -vv)::
12+
a very verbose verbosity (e.g. ``-vv``)::
1313

1414
use Symfony\Component\Process\Process;
1515

components/console/helpers/progressbar.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ the example above.
272272
Bar Settings
273273
~~~~~~~~~~~~
274274

275-
Amongst the placeholders, ``bar`` is a bit special as all the characters used
275+
Among the placeholders, ``bar`` is a bit special as all the characters used
276276
to display it can be customized::
277277

278278
// the finished part of the bar

components/console/helpers/questionhelper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ convenient for passwords::
242242
.. caution::
243243

244244
When you ask for a hidden response, Symfony will use either a binary, change
245-
stty mode or use another trick to hide the response. If none is available,
245+
``stty`` mode or use another trick to hide the response. If none is available,
246246
it will fallback and allow the response to be visible unless you set this
247247
behavior to ``false`` using
248248
:method:`Symfony\\Component\\Console\\Question\\Question::setHiddenFallback`

components/console/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ built-in options as well as a couple of built-in commands for the Console compon
1010
.. note::
1111

1212
These examples assume you have added a file ``application.php`` to run at
13-
the cli::
13+
the CLI::
1414

1515
#!/usr/bin/env php
1616
<?php

components/debug.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Enabling the Exception Handler
5858

5959
The :class:`Symfony\\Component\\Debug\\ExceptionHandler` class catches
6060
uncaught PHP exceptions and converts them to a nice PHP response. It is useful
61-
in debug mode to replace the default PHP/XDebug output with something prettier
61+
in debug mode to replace the default PHP/Xdebug output with something prettier
6262
and more useful::
6363

6464
use Symfony\Component\Debug\ExceptionHandler;

components/dependency_injection/compilation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ A very simple extension may just load configuration files into the container::
7878

7979
This does not gain very much compared to loading the file directly into
8080
the overall container being built. It just allows the files to be split
81-
up amongst the modules/bundles. Being able to affect the configuration
81+
up among the modules/bundles. Being able to affect the configuration
8282
of a module from configuration files outside of the module/bundle is needed
8383
to make a complex application configurable. This can be done by specifying
8484
sections of config files loaded directly into the container as being for

components/dom_crawler.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ and :method:`Symfony\\Component\\DomCrawler\\Crawler::filter`::
157157
method.
158158

159159
The default namespace is removed when loading the content if it's the only
160-
namespace in the document. It's done to simplify the xpath queries.
160+
namespace in the document. It's done to simplify the XPath queries.
161161

162162
Namespaces can be explicitly registered with the
163163
:method:`Symfony\\Component\\DomCrawler\\Crawler::registerNamespace` method::
@@ -203,7 +203,7 @@ Get all the direct child nodes matching a CSS selector::
203203
Accessing Node Values
204204
~~~~~~~~~~~~~~~~~~~~~
205205

206-
Access the node name (HTML tag name) of the first node of the current selection (eg. "p" or "div")::
206+
Access the node name (HTML tag name) of the first node of the current selection (e.g. "p" or "div")::
207207

208208
// returns the node name (HTML tag name) of the first child element under <body>
209209
$tag = $crawler->filterXPath('//body/*')->nodeName();

components/expression_language.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ PHP type (including objects)::
102102
[
103103
'fruit' => $apple,
104104
]
105-
));
105+
)); // displays "Honeycrisp"
106106

107-
This will print "Honeycrisp". For more information, see the :doc:`/components/expression_language/syntax`
107+
For more information, see the :doc:`/components/expression_language/syntax`
108108
entry, especially :ref:`component-expression-objects` and :ref:`component-expression-arrays`.
109109

110110
Caching

components/filesystem.rst

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ endpoint for filesystem operations::
4444
string, an array or any object implementing :phpclass:`Traversable` as
4545
the target argument.
4646

47-
mkdir
48-
~~~~~
47+
``mkdir``
48+
~~~~~~~~~
4949

5050
:method:`Symfony\\Component\\Filesystem\\Filesystem::mkdir` creates a directory recursively.
5151
On POSIX filesystems, directories are created with a default mode value
@@ -65,12 +65,12 @@ On POSIX filesystems, directories are created with a default mode value
6565
.. note::
6666

6767
The directory permissions are affected by the current `umask`_.
68-
Set the umask for your webserver, use PHP's :phpfunction:`umask`
68+
Set the ``umask`` for your webserver, use PHP's :phpfunction:`umask`
6969
function or use the :phpfunction:`chmod` function after the
7070
directory has been created.
7171

72-
exists
73-
~~~~~~
72+
``exists``
73+
~~~~~~~~~~
7474

7575
:method:`Symfony\\Component\\Filesystem\\Filesystem::exists` checks for the
7676
presence of one or more files or directories and returns ``false`` if any of
@@ -88,8 +88,8 @@ them is missing::
8888
You can pass an array or any :phpclass:`Traversable` object as the first
8989
argument.
9090

91-
copy
92-
~~~~
91+
``copy``
92+
~~~~~~~~
9393

9494
:method:`Symfony\\Component\\Filesystem\\Filesystem::copy` makes a copy of a
9595
single file (use :method:`Symfony\\Component\\Filesystem\\Filesystem::mirror` to
@@ -103,8 +103,8 @@ by the third boolean argument::
103103
// image.jpg will be overridden
104104
$filesystem->copy('image-ICC.jpg', 'image.jpg', true);
105105

106-
touch
107-
~~~~~
106+
``touch``
107+
~~~~~~~~~
108108

109109
:method:`Symfony\\Component\\Filesystem\\Filesystem::touch` sets access and
110110
modification time for a file. The current time is used by default. You can set
@@ -122,8 +122,8 @@ your own with the second argument. The third argument is the access time::
122122
You can pass an array or any :phpclass:`Traversable` object as the first
123123
argument.
124124

125-
chown
126-
~~~~~
125+
``chown``
126+
~~~~~~~~~
127127

128128
:method:`Symfony\\Component\\Filesystem\\Filesystem::chown` changes the owner of
129129
a file. The third argument is a boolean recursive option::
@@ -138,8 +138,8 @@ a file. The third argument is a boolean recursive option::
138138
You can pass an array or any :phpclass:`Traversable` object as the first
139139
argument.
140140

141-
chgrp
142-
~~~~~
141+
``chgrp``
142+
~~~~~~~~~
143143

144144
:method:`Symfony\\Component\\Filesystem\\Filesystem::chgrp` changes the group of
145145
a file. The third argument is a boolean recursive option::
@@ -154,8 +154,8 @@ a file. The third argument is a boolean recursive option::
154154
You can pass an array or any :phpclass:`Traversable` object as the first
155155
argument.
156156

157-
chmod
158-
~~~~~
157+
``chmod``
158+
~~~~~~~~~
159159

160160
:method:`Symfony\\Component\\Filesystem\\Filesystem::chmod` changes the mode or
161161
permissions of a file. The fourth argument is a boolean recursive option::
@@ -170,8 +170,8 @@ permissions of a file. The fourth argument is a boolean recursive option::
170170
You can pass an array or any :phpclass:`Traversable` object as the first
171171
argument.
172172

173-
remove
174-
~~~~~~
173+
``remove``
174+
~~~~~~~~~~
175175

176176
:method:`Symfony\\Component\\Filesystem\\Filesystem::remove` deletes files,
177177
directories and symlinks::
@@ -183,8 +183,8 @@ directories and symlinks::
183183
You can pass an array or any :phpclass:`Traversable` object as the first
184184
argument.
185185

186-
rename
187-
~~~~~~
186+
``rename``
187+
~~~~~~~~~~
188188

189189
:method:`Symfony\\Component\\Filesystem\\Filesystem::rename` changes the name
190190
of a single file or directory::
@@ -194,8 +194,8 @@ of a single file or directory::
194194
// renames a directory
195195
$filesystem->rename('/tmp/files', '/path/to/store/files');
196196

197-
symlink
198-
~~~~~~~
197+
``symlink``
198+
~~~~~~~~~~~
199199

200200
:method:`Symfony\\Component\\Filesystem\\Filesystem::symlink` creates a
201201
symbolic link from the target to the destination. If the filesystem does not
@@ -207,8 +207,8 @@ support symbolic links, a third boolean argument is available::
207207
// does not support symbolic links
208208
$filesystem->symlink('/path/to/source', '/path/to/destination', true);
209209

210-
readlink
211-
~~~~~~~~
210+
``readlink``
211+
~~~~~~~~~~~~
212212

213213
:method:`Symfony\\Component\\Filesystem\\Filesystem::readlink` read links targets.
214214

@@ -238,8 +238,8 @@ Its behavior is the following::
238238
* if ``$path`` does not exist, it returns null.
239239
* if ``$path`` exists, it returns its absolute fully resolved final version.
240240

241-
makePathRelative
242-
~~~~~~~~~~~~~~~~
241+
``makePathRelative``
242+
~~~~~~~~~~~~~~~~~~~~
243243

244244
:method:`Symfony\\Component\\Filesystem\\Filesystem::makePathRelative` takes two
245245
absolute paths and returns the relative path from the second path to the first one::
@@ -252,8 +252,8 @@ absolute paths and returns the relative path from the second path to the first o
252252
// returns 'videos/'
253253
$filesystem->makePathRelative('/tmp/videos', '/tmp')
254254

255-
mirror
256-
~~~~~~
255+
``mirror``
256+
~~~~~~~~~~
257257

258258
:method:`Symfony\\Component\\Filesystem\\Filesystem::mirror` copies all the
259259
contents of the source directory into the target one (use the
@@ -262,8 +262,8 @@ files)::
262262

263263
$filesystem->mirror('/path/to/source', '/path/to/target');
264264

265-
isAbsolutePath
266-
~~~~~~~~~~~~~~
265+
``isAbsolutePath``
266+
~~~~~~~~~~~~~~~~~~
267267

268268
:method:`Symfony\\Component\\Filesystem\\Filesystem::isAbsolutePath` returns
269269
``true`` if the given path is absolute, ``false`` otherwise::
@@ -277,16 +277,18 @@ isAbsolutePath
277277
// returns false
278278
$filesystem->isAbsolutePath('../dir');
279279

280-
tempnam
281-
~~~~~~~
280+
``tempnam``
281+
~~~~~~~~~~~
282282

283-
:method:`Symfony\\Component\\Filesystem\\Filesystem::tempnam` creates a temporary file with a unique filename, and returns its path, or throw an exception on failure::
283+
:method:`Symfony\\Component\\Filesystem\\Filesystem::tempnam` creates a
284+
temporary file with a unique filename, and returns its path, or throw an
285+
exception on failure::
284286

285287
// returns a path like : /tmp/prefix_wyjgtF
286288
$filesystem->tempnam('/tmp', 'prefix_');
287289

288-
dumpFile
289-
~~~~~~~~
290+
``dumpFile``
291+
~~~~~~~~~~~~
290292

291293
:method:`Symfony\\Component\\Filesystem\\Filesystem::dumpFile` saves the given
292294
contents into a file. It does this in an atomic manner: it writes a temporary
@@ -298,8 +300,8 @@ complete new file (but never a partially-written file)::
298300

299301
The ``file.txt`` file contains ``Hello World`` now.
300302

301-
appendToFile
302-
~~~~~~~~~~~~
303+
``appendToFile``
304+
~~~~~~~~~~~~~~~~
303305

304306
:method:`Symfony\\Component\\Filesystem\\Filesystem::appendToFile` adds new
305307
contents at the end of some file::

components/process.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ the contents of the output and
5151
the contents of the error output.
5252

5353
You can also use the :class:`Symfony\\Component\\Process\\Process` class with the
54-
foreach construct to get the output while it is generated. By default, the loop waits
54+
for each construct to get the output while it is generated. By default, the loop waits
5555
for new output before going to the next iteration::
5656

5757
$process = new Process(['ls', '-lsa']);
@@ -152,7 +152,7 @@ env vars you want to remove::
152152
Getting real-time Process Output
153153
--------------------------------
154154

155-
When executing a long running command (like rsync-ing files to a remote
155+
When executing a long running command (like ``rsync`` to a remote
156156
server), you can give feedback to the end user in real-time by passing an
157157
anonymous function to the
158158
:method:`Symfony\\Component\\Process\\Process::run` method::
@@ -269,7 +269,7 @@ Streaming to the Standard Input of a Process
269269
Before a process is started, you can specify its standard input using either the
270270
:method:`Symfony\\Component\\Process\\Process::setInput` method or the 4th argument
271271
of the constructor. The provided input can be a string, a stream resource or a
272-
Traversable object::
272+
``Traversable`` object::
273273

274274
$process = new Process(['cat']);
275275
$process->setInput('foobar');
@@ -299,7 +299,7 @@ provides the :class:`Symfony\\Component\\Process\\InputStream` class::
299299
echo $process->getOutput();
300300

301301
The :method:`Symfony\\Component\\Process\\InputStream::write` method accepts scalars,
302-
stream resources or Traversable objects as argument. As shown in the above example,
302+
stream resources or ``Traversable`` objects as argument. As shown in the above example,
303303
you need to explicitly call the :method:`Symfony\\Component\\Process\\InputStream::close`
304304
method when you are done writing to the standard input of the subprocess.
305305

components/property_access.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ Using Getters
112112
~~~~~~~~~~~~~
113113

114114
The ``getValue()`` method also supports reading using getters. The method will
115-
be created using common naming conventions for getters. It camelizes the
116-
property name (``first_name`` becomes ``FirstName``) and prefixes it with
117-
``get``. So the actual method becomes ``getFirstName()``::
115+
be created using common naming conventions for getters. It transform the
116+
property name to camelCase (``first_name`` becomes ``FirstName``) and prefixes
117+
it with ``get``. So the actual method becomes ``getFirstName()``::
118118

119119
// ...
120120
class Person

0 commit comments

Comments
 (0)