Skip to content

Update di.rst #10

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions zh/reference/di.rst
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ Phalcon\\DI 提供服务的延迟加载。除非开发人员在注入服务的
));
});

以上这两种服务的注册方式产生相同的结果。然后,通过数组定义的,在后面需要的时候,你可以修改服务参数:
以上这两种服务的注册方式产生相同的结果。然而,通过数组定义的,在后面需要的时候,你可以修改服务参数:

.. code-block:: php

Expand Down Expand Up @@ -557,4 +557,4 @@ Accessing the DI in a static way

}

.. _`Inversion of Control`: http://en.wikipedia.org/wiki/Inversion_of_control
.. _`Inversion of Control`: http://en.wikipedia.org/wiki/Inversion_of_control