10000 [#3419] Minor language tweak thanks to @xabbuh · symfony/symfony-docs@0dac73f · GitHub
[go: up one dir, main page]

Skip to content

Commit 0dac73f

Browse files
committed
[#3419] Minor language tweak thanks to @xabbuh
1 parent f2eaf9b commit 0dac73f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cookbook/doctrine/file_uploads.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,11 @@ Using Lifecycle Callbacks
303303
.. caution::
304304

305305
Using lifecycle callbacks is a limited technique that has some drawbacks.
306-
If you want to remove the hard coded ``__DIR__`` reference inside
306+
If you want to remove the hardcoded ``__DIR__`` reference inside
307307
the ``Document::getUploadRootDir()`` method, the best way is to start
308-
using explicit :doc:`doctrine listeners </cookbook/doctrine/event_listeners_subscribers>`
309-
where you will be able to inject kernel parameters such as
310-
``kernel.root_dir`` to be able to build absolute paths.
308+
using explicit :doc:`doctrine listeners </cookbook/doctrine/event_listeners_subscribers>`.
309+
There you will be able to inject kernel parameters such as ``kernel.root_dir``
310+
to be able to build absolute paths.
311311

312312
Even if this implementation works, it suffers from a major flaw: What if there
313313
is a problem when the entity is persisted? The file would have already moved

0 commit comments

Comments
 (0)
0