8000 Update micro_kernel_trait.rst by amine-betari · Pull Request #12722 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Update micro_kernel_trait.rst #12722

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

Merged
merged 12 commits into from
Feb 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension 8000

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/console/helpers/progressbar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ level of verbosity of the ``OutputInterface`` instance:
3/3 [============================] 100% 1 sec

# OutputInterface::VERBOSITY_VERY_VERBOSE (-vv)
0/3 [>---------------------------] 0% 1 sec
1/3 [=========>------------------] 33% 1 sec
3/3 [============================] 100% 1 sec
0/3 [>---------------------------] 0% 1 sec/1 sec
1/3 [=========>------------------] 33% 1 sec/1 sec
3/3 [============================] 100% 1 sec/1 sec

# OutputInterface::VERBOSITY_DEBUG (-vvv)
0/3 [>---------------------------] 0% 1 sec/1 sec 1.0 MB
Expand Down
2 changes: 1 addition & 1 deletion components/dependency_injection/compilation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ methods described in :doc:`/service_container/definitions`.
.. note::

Please note that the ``process()`` method in the extension class is
called during the optimization step. You can read
called during the ``PassConfig::TYPE_BEFORE_OPTIMIZATION`` step. You can read
:ref:`the next section <components-di-separate-compiler-passes>` if you
need to edit the container during another step.

Expand Down
11 changes: 10 additions & 1 deletion components/lock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ PHP process is terminated::
use Symfony\Component\Lock\Store\FlockStore;

// the argument is the path of the directory where the locks are created
$store = new FlockStore(sys_get_temp_dir());
// if none is given, sys_get_temp_dir() is used internally.
$store = new FlockStore('/var/stores');

.. caution::

Expand Down Expand Up @@ -529,6 +530,14 @@ can be two running containers in parallel.
concurrent process on a new machine, check that other process are stopped
on the old one.

.. caution::

When runing on systemd with non-system user and option ``RemoveIPC=yes``
(default value), locks are deleted by systemd when that user logs out.
Check that process is run with a system user (UID <= SYS_UID_MAX) with
``SYS_UID_MAX`` defined in ``/etc/login.defs``, or set the option
``RemoveIPC=off`` in ``/etc/systemd/logind.conf``.

Overall
~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion configuration/micro_kernel_trait.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Next, create an ``index.php`` file that creates a kernel class and executes it::
use Symfony\Component\Routing\RouteCollectionBuilder;

// require Composer's autoloader
require __DIR__.'/vendor/autoload.php';
require dirname(__DIR__).'/vendor/autoload.php';

class AppKernel extends Kernel
{
Expand Down
4 changes: 4 additions & 0 deletions service_container/autowiring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,10 @@ Public and Reusable Bundles
---------------------------

Public bundles should explicitly configure their services and not rely on autowiring.
Autowiring depends on the services that are available in the container and bundles have
no control over the service container of applications they are included in. You can use
autowiring when building reusable bundles within your company, as you have full control
over all code.

.. _ROT13: https://en.wikipedia.org/wiki/ROT13
.. _service definition prototype: https://symfony.com/blog/new-in-symfony-3-3-psr-4-based-service-discovery
0