際際滷

際際滷Share a Scribd company logo
Dependency injection
outsourcing development
quazar.dn.ua
弌舒亟仆亳从 仆亟亠亶
Drupal & Symfony Developer
Dependency Injection
Dependency Injection Andrey Stadnik(enemis)
Dependency Injection Andrey Stadnik(enemis)
舒于亳亳仄仂
舒于亳亳仄仂
仂弍仍亠仄 亰舒于亳亳仄仂亠亶
 亠于仂亰仄仂亢仆仂 Unit 亠亳仂于舒仆亳
 仂仂礌仆亶 亠舒从仂亳仆亞 仗亳 仄舒仍亠亶亠仄
亳亰仄亠仆亠仆亳亳 从 亰舒于亳亳仄仂亳
 亠于仂亰仄仂亢仆仂 亳仗仂仍亰仂于舒仆亳亠 亳仆亠亠亶仂于
亠舒从仂亳仆亞
亞舒 仗仂弍仍亠仄舒
仍 舒弍仂  从仍舒仂仄 仆亢仆仂
仆亠 亰舒弍 仂 于亠 亠亞仂 亰舒于亳亳仄仂,
亳 于亰于舒 仂仂于亠于ム亳亠 set 仄亠仂亟!
舒从 于亠亞仂 仂亞仂 亳亰弍亠亢舒?
Dependency Injection 仗亠亳 仆舒
仗仂仄仂
Inversion of Control (亳仆于亠亳
仗舒于仍亠仆亳)
 Factory Method
 Service Locator
 Dependency Injection
亠舒仍亳亰舒亳亳 Dependency injection
 Phemto
 Pimple
 Symfony 2 Dependency
Injection
弌仗仂仂弍 于仆亠亟亠仆亳
仆亠亟亠仆亳亠 于 从仂仆从仂亠 - onstructor Injection
仆亠亟亠仆亳亠 于 仄亠仂亟亠 - setter Injection
仆亠亟亠仆亳亠 于 于仂亶于仂 - Property Injection
Setter injection
Constructor injection
仂仆亳亞亳仂于舒仆亳亠
Yaml 从仂仆亳亞:
仂仆亳亞亳仂于舒仆亳亠
PHP 从仂仆亳亞:
Scopes
 container (仗仂 仄仂仍舒仆亳): 亟仆舒 亳舒亢亠
instance 仂弍亠从舒 于 仍ミ頴笑 于亠仄
 prototype: 舒亢亟亶 舒亰 仆仂于舒 instance
 request  从舒亢亟亶 仗仂亟亰舒仗仂 仆仂于舒 instance
个舒弍亳从亳 从亠礌舒仄
Dependency Injection Andrey Stadnik(enemis)
Parent Service
Composer.phar
仂仍亠亟仆亳亠 仗亳亞仂仂于仍亠仆亳亠
仗仂仍亰仂于舒仆亳亠
IoC & Di  于亠 仗仂弍仍亠仄 亠亠仆?
仍ム:
亳仆:
 于亳亠 亰舒于亳亳仄仂亠亶
 亠亞从仂 亠亳仂于舒仆亳
 亠仆 于仂从亳亶 仂于亠仆 舒弍舒从亳亶
亠亞从仂 舒亳亠仆亳 亰舒仄亠仆 仍ミ英 从仂仄仗仂仆亠仆仂于
 亠亰从仂亠 仆亳亢亠仆亳亠 仗仂亳亰于仂亟亳亠仍仆仂亳
 仂仍亠亠 于仂从舒 仂亳仄仂 舒亰舒弍仂从亳
舒从亳亠从亳亶 仗亳仄亠 DI
Service custom serializer
Serializer workflow
仂亟亳仆亞 :)
Serializer.yml
仂仄仗亳仍亳仂于舒仆亳亠 从仂仆亠亶仆亠舒
仂仂亟亳 于 仆亠从仂仍从仂 仗仂仂亟仂于 仂仆仂于舒仆仂 仆舒 亳仆亠亠亶亠
CompilerPassInterface
亠仂弍仂亟亳仄仂 亟仍:
丕弍亳舒仆亳亠 亰舒亳从仍亳于舒仆亳
丕弍亳舒仆亳亠 亳亰 仂弍亠亞仂 从仂仆亠亶仆亠舒 仗亳于舒仆 亳
舒弍舒从仆 亠于亳仂于
仂弍舒于仍亠仆亳亠 舒仍亳舒仂于
仗亠亟亠仍亠仆亳 亠亞亳仂于舒仆仆 亠于亳仂于
亳仄亠 亠舒仍亳亰舒亳亳 仗仂仂亟舒
从仂仄仗亳仍仂舒
Dependency Injection Andrey Stadnik(enemis)
Dependency Injection Andrey Stadnik(enemis)
Dependency Injection Andrey Stadnik(enemis)
Dependency Injection Andrey Stadnik(enemis)
Dependency Injection Andrey Stadnik(enemis)
Dependency Injection Andrey Stadnik(enemis)
弌舒亟仆亳从 仆亟亠亶
Symfony & Drupal developer
Mail:enemis@mail.ru
Skype:enemis-87
quazar.dn.ua

More Related Content

Dependency Injection Andrey Stadnik(enemis)