Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[Process] Add code blocks declaration
  • Loading branch information
romainneutron committed Apr 14, 2013
commit 46782d178bc6108a783d0f9cc0d7f80d678bce7c
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