Skip to content

Commit ae92a1f

Browse files
committed
di/passing-dependencies: highlighting inject info
1 parent 7b344c8 commit ae92a1f

17 files changed

+119
-17
lines changed

dependency-injection/bg/passing-dependencies.texy

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
</div>
1414

15-
Първите три метода са приложими във всички обектно-ориентирани езици, а четвъртият е специфичен за презентаторите на Nette, затова е разгледан в [отделна глава |best-practices:inject-method-attribute]. Сега ще разгледаме по-подробно всяка от тези възможности и ще ги покажем с конкретни примери.
15+
Сега ще илюстрираме различните варианти с конкретни примери.
1616

1717

1818
Внедряване чрез конструктор .[#toc-constructor-injection]
@@ -145,6 +145,12 @@ services:
145145
```
146146

147147

148+
Инжектиране .[#toc-inject]
149+
==========================
150+
151+
Докато предишните три метода са общовалидни във всички обектно-ориентирани езици, инжектирането чрез метод, анотация или атрибут *inject* е специфично за презентаторите на Nette. Те са разгледани в [отделна глава |best-practices:inject-method-attribute].
152+
153+
148154
Кой път да избера? .[#toc-which-way-to-choose]
149155
==============================================
150156

dependency-injection/cs/passing-dependencies.texy

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Argumenty, nebo v terminologii DI „závislosti“, lze do tříd předávat t
1212

1313
</div>
1414

15-
První tři způsoby platí obecně ve všech objektově orientovaných jazycích, čtvrtý je specifický pro presentery v Nette, takže o něm pojednává [samostatná kapitola |best-practices:inject-method-attribute]. Nyní si jednotlivé možnosti přiblížíme a ukážeme na konkrétních případech.
15+
Nyní si jednotlivé varianty ukážeme na konkrétních příkladech.
1616

1717

1818
Předávání konstruktorem
@@ -143,6 +143,12 @@ services:
143143
```
144144

145145

146+
Inject
147+
======
148+
149+
Zatímco předchozí tři způsoby platí obecně ve všech objektově orientovaných jazycích, injektování metodou, anotací či atributem *inject* je specifické čistě pro presentery v Nette. Pojednává o nich [samostatná kapitola |best-practices:inject-method-attribute].
150+
151+
146152
Jaký způsob zvolit?
147153
===================
148154

dependency-injection/de/passing-dependencies.texy

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Argumente, oder "Abhängigkeiten" in der DI-Terminologie, können auf die folgen
1212

1313
</div>
1414

15-
Die ersten drei Methoden gelten allgemein in allen objektorientierten Sprachen, die vierte ist spezifisch für Nette-Präsentatoren und wird daher in einem [eigenen Kapitel |best-practices:inject-method-attribute] behandelt. Wir werden uns nun jede dieser Möglichkeiten genauer ansehen und anhand konkreter Beispiele erläutern.
15+
Wir werden nun die verschiedenen Varianten mit konkreten Beispielen illustrieren.
1616

1717

1818
Konstruktor-Injektion .[#toc-constructor-injection]
@@ -143,6 +143,12 @@ services:
143143
```
144144

145145

146+
Einspritzen .[#toc-inject]
147+
==========================
148+
149+
Während die drei vorangegangenen Methoden allgemein in allen objektorientierten Sprachen gültig sind, ist das Injizieren per Methode, Annotation oder *inject*-Attribut spezifisch für Nette-Präsentatoren. Sie werden in einem [separaten Kapitel |best-practices:inject-method-attribute] behandelt.
150+
151+
146152
Welcher Weg soll gewählt werden? .[#toc-which-way-to-choose]
147153
============================================================
148154

dependency-injection/el/passing-dependencies.texy

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
</div>
1414

15-
Οι τρεις πρώτες μέθοδοι εφαρμόζονται γενικά σε όλες τις αντικειμενοστραφείς γλώσσες, η τέταρτη είναι ειδική για τους παρουσιαστές της Nette, γι' αυτό και εξετάζεται σε [ξεχωριστό κεφάλαιο |best-practices:inject-method-attribute]. Θα εξετάσουμε τώρα πιο προσεκτικά καθεμία από αυτές τις επιλογές και θα τις παρουσιάσουμε με συγκεκριμένα παραδείγματα.
15+
Θα παρουσιάσουμε τώρα τις διάφορες παραλλαγές με συγκεκριμένα παραδείγματα.
1616

1717

1818
Έγχυση κατασκευαστή .[#toc-constructor-injection]
@@ -143,6 +143,12 @@ services:
143143
```
144144

145145

146+
Ένεση .[#toc-inject]
147+
====================
148+
149+
Ενώ οι τρεις προηγούμενες μέθοδοι ισχύουν γενικά σε όλες τις αντικειμενοστραφείς γλώσσες, η έγχυση μέσω μεθόδου, σχολίου ή χαρακτηριστικού *inject* είναι ειδική για τους παρουσιαστές Nette. Συζητούνται σε [ξεχωριστό |best-practices:inject-method-attribute] κεφάλαιο.
150+
151+
146152
Ποιον τρόπο να επιλέξω; .[#toc-which-way-to-choose]
147153
===================================================
148154

dependency-injection/en/passing-dependencies.texy

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Arguments, or "dependencies" in DI terminology, can be passed to classes in the
1212

1313
</div>
1414

15-
The first three methods apply in general in all object-oriented languages, the fourth is specific to Nette presenters, so it is discussed in [separate chapter |best-practices:inject-method-attribute]. We will now take a closer look at each of these options and show them with specific examples.
15+
We will now illustrate the different variants with concrete examples.
1616

1717

1818
Constructor Injection
@@ -143,6 +143,12 @@ services:
143143
```
144144

145145

146+
Inject
147+
======
148+
149+
While the previous three methods are generally valid in all object-oriented languages, injecting by method, annotation or *inject* attribute is specific to Nette presenters. They are discussed in [a separate chapter |best-practices:inject-method-attribute].
150+
151+
146152
Which Way to Choose?
147153
====================
148154

dependency-injection/es/passing-dependencies.texy

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Los argumentos, o "dependencias" en la terminología DI, se pueden pasar a las c
1212

1313
</div>
1414

15-
Los tres primeros métodos se aplican en general en todos los lenguajes orientados a objetos, el cuarto es específico de los presentadores Nette, por lo que se trata en [capítulo aparte |best-practices:inject-method-attribute]. A continuación veremos más detenidamente cada una de estas opciones y las mostraremos con ejemplos concretos.
15+
A continuación ilustraremos las distintas variantes con ejemplos concretos.
1616

1717

1818
Inyección de constructor .[#toc-constructor-injection]
@@ -143,6 +143,12 @@ services:
143143
```
144144

145145

146+
Inyectar .[#toc-inject]
147+
=======================
148+
149+
Mientras que los tres métodos anteriores son generalmente válidos en todos los lenguajes orientados a objetos, la inyección por método, anotación o atributo *inject* es específica de los presentadores Nette. Se tratan en [un capítulo aparte |best-practices:inject-method-attribute].
150+
151+
146152
¿Qué camino elegir? .[#toc-which-way-to-choose]
147153
===============================================
148154

dependency-injection/fr/passing-dependencies.texy

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Les arguments, ou "dépendances" dans la terminologie DI, peuvent être transmis
1212

1313
</div>
1414

15-
Les trois premières méthodes s'appliquent en général dans tous les langages orientés objet, la quatrième est spécifique aux présentateurs Nette, elle est donc traitée dans un [chapitre séparé |best-practices:inject-method-attribute]. Nous allons maintenant examiner de plus près chacune de ces options et les montrer à l'aide d'exemples spécifiques.
15+
Nous allons maintenant illustrer les différentes variantes par des exemples concrets.
1616

1717

1818
Injection de constructeur .[#toc-constructor-injection]
@@ -143,6 +143,12 @@ services:
143143
```
144144

145145

146+
Injecter .[#toc-inject]
147+
=======================
148+
149+
Alors que les trois méthodes précédentes sont généralement valables dans tous les langages orientés objet, l'injection par méthode, annotation ou attribut *inject* est spécifique aux présentateurs Nette. Elles font l'objet d'un [chapitre distinct |best-practices:inject-method-attribute].
150+
151+
146152
Quelle voie choisir ? .[#toc-which-way-to-choose]
147153
=================================================
148154

dependency-injection/hu/passing-dependencies.texy

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Az argumentumok, vagy DI terminológiában "függőségek", a következő főbb
1212

1313
</div>
1414

15-
Az első három módszer általánosságban minden objektumorientált nyelvben alkalmazható, a negyedik a Nette prezenterekre jellemző, ezért [külön fejezetben |best-practices:inject-method-attribute] tárgyaljuk. A következőkben mindegyik lehetőséget közelebbről megvizsgáljuk és konkrét példákon keresztül bemutatjuk.
15+
Most konkrét példákkal illusztráljuk a különböző változatokat.
1616

1717

1818
Konstruktor-befecskendezés .[#toc-constructor-injection]
@@ -143,6 +143,12 @@ services:
143143
```
144144

145145

146+
Injektálás .[#toc-inject]
147+
=========================
148+
149+
Míg az előző három módszer általában minden objektumorientált nyelvben érvényes, a metódus, annotáció vagy *inject* attribútum általi injektálás a Nette prezenterekre jellemző. Ezeket [külön fejezetben |best-practices:inject-method-attribute] tárgyaljuk.
150+
151+
146152
Melyik utat válasszuk? .[#toc-which-way-to-choose]
147153
==================================================
148154

dependency-injection/it/passing-dependencies.texy

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gli argomenti, o "dipendenze" nella terminologia DI, possono essere passati alle
1212

1313
</div>
1414

15-
I primi tre metodi si applicano in generale a tutti i linguaggi orientati agli oggetti, mentre il quarto è specifico per i presentatori Nette, quindi viene discusso in un [capitolo a parte |best-practices:inject-method-attribute]. Daremo ora un'occhiata più da vicino a ciascuna di queste opzioni e le illustreremo con esempi specifici.
15+
Illustriamo ora le diverse varianti con esempi concreti.
1616

1717

1818
Iniezione del costruttore .[#toc-constructor-injection]
@@ -143,6 +143,12 @@ services:
143143
```
144144

145145

146+
Iniettare .[#toc-inject]
147+
========================
148+
149+
Mentre i tre metodi precedenti sono generalmente validi in tutti i linguaggi orientati agli oggetti, l'iniezione tramite metodo, annotazione o attributo *inject* è specifica dei presentatori Nette. Sono trattati in [un capitolo a parte |best-practices:inject-method-attribute].
150+
151+
146152
Quale strada scegliere? .[#toc-which-way-to-choose]
147153
===================================================
148154

dependency-injection/ja/passing-dependencies.texy

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
</div>
1414

15-
最初の3つの方法は、すべてのオブジェクト指向言語で一般的に適用されます。4番目の方法は、Nette プレゼンターに特有の方法なので、[別の |best-practices:en:inject-method-attribute]章で説明します。これから、これらのオプションのそれぞれを詳しく見て、具体的な例で紹介します
15+
ここでは、さまざまなバリエーションを具体的な例で説明します
1616

1717

1818
コンストラクタ・インジェクション .[#toc-constructor-injection]
@@ -143,6 +143,12 @@ services:
143143
```
144144

145145

146+
インジェクト.[#toc-inject]
147+
====================
148+
149+
前の3つの方法は、一般的にすべてのオブジェクト指向言語で有効ですが、メソッド、アノテーション、*inject*属性による注入は、Netteプレゼンターに特有の方法です。これらは[別章で |best-practices:inject-method-attribute]説明します。
150+
151+
146152
どの方法を選択するか? .[#toc-which-way-to-choose]
147153
=======================================
148154

0 commit comments

Comments
 (0)