Skip to content

Commit 3b829c0

Browse files
committed
Merge branch '2.7' into 2.8
2 parents befbf7b + 90745db commit 3b829c0

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

cookbook/assetic/php.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ First, configure a new ``scssphp`` Assetic filter:
113113
114114
The value of the ``formatter`` option is the fully qualified class name of the
115115
formatter used by the filter to produce the compiled CSS file. Using the
116-
compressed formatter will minimize the the resulting file, regardless of whether
116+
compressed formatter will minimize the resulting file, regardless of whether
117117
the original files are regular CSS files or SCSS files.
118118

119119
Next, update your Twig template to add the ``{% stylesheets %}`` tag defined

cookbook/controller/upload_file.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,14 @@ There are some important things to consider in the code of the above controller:
156156
provides methods for the most common operations when dealing with uploaded files.
157157
#. A well-known security best practice is to never trust the input provided by
158158
users. This also applies to the files uploaded by your visitors. The ``Uploaded``
159-
class provides methods to get the original file extension (:method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::getExtension()`),
160-
the original file size (:method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::getSize()`)
161-
and the original file name (:method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::getClientOriginalName()`).
159+
class provides methods to get the original file extension (:method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::getExtension`),
160+
the original file size (:method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::getSize`)
161+
and the original file name (:method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::getClientOriginalName`).
162162
However, they are considered *not safe* because a malicious user could tamper
163163
that information. That's why it's always better to generate a unique name and
164-
use the :method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::guessExtension()`
164+
use the :method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::guessExtension`
165165
method to let Symfony guess the right extension according to the file MIME type.
166-
#. The ``UploadedFile`` class also provides a :method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::move()`
166+
#. The ``UploadedFile`` class also provides a :method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::move`
167167
method to store the file in its intended directory. Defining this directory
168168
path as an application configuration option is considered a good practice that
169169
simplifies the code: ``$this->container->getParameter('brochures_dir')``.
@@ -172,6 +172,6 @@ You can now use the following code to link to the PDF brochure of an product:
172172

173173
.. code-block:: html+jinja
174174

175-
<a href="{{ asset('uploads/brochures' ~ product.brochure) }}">View brochure (PDF)</a>
175+
<a href="{{ asset('uploads/brochures/' ~ product.brochure) }}">View brochure (PDF)</a>
176176

177177
.. _`VichUploaderBundle`: https://github.com/dustin10/VichUploaderBundle

cookbook/email/email.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ template might look something like this:
130130
{# app/Resources/views/Emails/registration.html.twig #}
131131
<h3>You did it! You registered!</h3>
132132

133-
{# example, assuming you have a route named "login" $}
133+
{# example, assuming you have a route named "login" #}
134134
To login, go to: <a href="{{ url('login') }}">...</a>.
135135

136136
Thanks!

0 commit comments

Comments
 (0)