Skip to content

[Process] Add code blocks declaration #2506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions components/process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Usage
The :class:`Symfony\\Component\\Process\\Process` class allows you to execute
a command in a sub-process::

.. code-block:: php

use Symfony\Component\Process\Process;

$process = new Process('ls -lsa');
Expand Down Expand Up @@ -50,6 +52,8 @@ server), you can give feedback to the end user in real-time by passing an
anonymous function to the
:method:`Symfony\\Component\\Process\\Process::run` method::

.. code-block:: php

use Symfony\Component\Process\Process;

$process = new Process('ls -lsa');
Expand Down Expand Up @@ -99,6 +103,8 @@ are done doing other stuff::
If you want to execute some PHP code in isolation, use the ``PhpProcess``
instead::

.. code-block:: php

use Symfony\Component\Process\PhpProcess;

$process = new PhpProcess(<<<EOF
Expand Down