mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-08 22:00:46 +02:00
93 lines
2.6 KiB
Plaintext
93 lines
2.6 KiB
Plaintext
# SOME DESCRIPTIVE TITLE.
|
|
# Copyright (C) 2011-2019, Dominik Liebler and contributors
|
|
# This file is distributed under the same license as the DesignPatternsPHP
|
|
# package.
|
|
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
|
#
|
|
#, fuzzy
|
|
msgid ""
|
|
msgstr ""
|
|
"Project-Id-Version: DesignPatternsPHP 1.0\n"
|
|
"Report-Msgid-Bugs-To: \n"
|
|
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
|
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
"MIME-Version: 1.0\n"
|
|
"Content-Type: text/plain; charset=utf-8\n"
|
|
"Content-Transfer-Encoding: 8bit\n"
|
|
"Generated-By: Babel 2.8.0\n"
|
|
|
|
#: ../../Structural/DependencyInjection/README.rst:2
|
|
msgid "`Dependency Injection`__"
|
|
msgstr ""
|
|
|
|
#: ../../Structural/DependencyInjection/README.rst:5
|
|
msgid "Purpose"
|
|
msgstr ""
|
|
|
|
#: ../../Structural/DependencyInjection/README.rst:7
|
|
msgid ""
|
|
"To implement a loosely coupled architecture in order to get better "
|
|
"testable, maintainable and extendable code."
|
|
msgstr ""
|
|
|
|
#: ../../Structural/DependencyInjection/README.rst:11
|
|
msgid "Usage"
|
|
msgstr ""
|
|
|
|
#: ../../Structural/DependencyInjection/README.rst:13
|
|
msgid ""
|
|
"``DatabaseConfiguration`` gets injected and ``DatabaseConnection`` will "
|
|
"get all that it needs from ``$config``. Without DI, the configuration "
|
|
"would be created directly in ``DatabaseConnection``, which is not very "
|
|
"good for testing and extending it."
|
|
msgstr ""
|
|
|
|
#: ../../Structural/DependencyInjection/README.rst:19
|
|
msgid "Examples"
|
|
msgstr ""
|
|
|
|
#: ../../Structural/DependencyInjection/README.rst:21
|
|
msgid ""
|
|
"The Doctrine2 ORM uses dependency injection e.g. for configuration that "
|
|
"is injected into a ``Connection`` object. For testing purposes, one can "
|
|
"easily create a mock object of the configuration and inject that into the"
|
|
" ``Connection`` object"
|
|
msgstr ""
|
|
|
|
#: ../../Structural/DependencyInjection/README.rst:25
|
|
msgid ""
|
|
"many frameworks already have containers for DI that create objects via a "
|
|
"configuration array and inject them where needed (i.e. in Controllers)"
|
|
msgstr ""
|
|
|
|
#: ../../Structural/DependencyInjection/README.rst:30
|
|
msgid "UML Diagram"
|
|
msgstr ""
|
|
|
|
#: ../../Structural/DependencyInjection/README.rst:37
|
|
msgid "Code"
|
|
msgstr ""
|
|
|
|
#: ../../Structural/DependencyInjection/README.rst:39
|
|
msgid "You can also find this code on `GitHub`_"
|
|
msgstr ""
|
|
|
|
#: ../../Structural/DependencyInjection/README.rst:41
|
|
msgid "DatabaseConfiguration.php"
|
|
msgstr ""
|
|
|
|
#: ../../Structural/DependencyInjection/README.rst:47
|
|
msgid "DatabaseConnection.php"
|
|
msgstr ""
|
|
|
|
#: ../../Structural/DependencyInjection/README.rst:54
|
|
msgid "Test"
|
|
msgstr ""
|
|
|
|
#: ../../Structural/DependencyInjection/README.rst:56
|
|
msgid "Tests/DependencyInjectionTest.php"
|
|
msgstr ""
|
|
|