6.2 基础概念

1龶OOP

龮龪龨龦龣龠龟龜龙龗龕龔龓龐龏龎龍龏龣龠龋龉龈龇龅龁齿齾齼龨龦齸龨龦齷齴齰齬齪龋齨齸齰齬齤齣龨龦齡齝齸龋齨齜齘龨龦龏齔齼龈龮龪龨龦齜齘齓齑齎龏齋齇齬龶齅齄齬龶齀鼿齬龕鼽龈龮龪龨龦鼼鼺鼹鼶鼲鼰龦龶鼮鼭龶鼫齝鼨鼦齬龈

Drupal 8鼑鼏龮龪龨龦鼦齬齸鼌鼋鼉鼇鼫鼆齇鼂龶黿黽黺龙龈黹黵黱龁黭龓黪龏黦黥鼽黡齸鼲

2龶Symfony 2

Drupal 8麎麌齓Symfony 2麋麊麇麃齸龕龏麂龗齓鹾鹽鹼鹺齋鹸龈Drupal 8鹶鹳齇龇鹱鹭鹫鹩(routing)龶session齪鹧鹤(service)龈鹟鹜Symfony 2鹙鹖( https://symfony-docs-chs.readthedocs.io/en/latest/ ) 鹔鹒鹐鹎鼫龏Symfony麇麃鹌鹉龈鹒鹐龇鹆鹂鸾鸼鹳鸻鸷Drupal 鹌鹉齸鹒鹐龇龅鼆鸶龙龗鹎鸴龏Drupal麋麊鸱齪PHP麋麊鸱龈Symfony鸮鸭鸩 http://symfony.com/doc/current/components/index.html

3龶鸣鸡鸝鸜

鼲鸘鸶龨PHP鸣鸡鸝鸜鸕鸒鸾鸎鸋齸鸊鹟鹜鸩 http://php.net/manual/zh/language.namespaces.basics.php 鸩龈Drupal 8鼆齇齓PSR-4鼽黡麋麊龈PSR-4鼽黡麂鷾鷺PHP鸣鸡鸝鸜龏鷹鷶鷳鷲鼺龏龋龉龈龇鷱齓鼲鸷鷹鷶鷳鷲鷾鷺鸣鸡鸝鸜齪鼂鸡龏鼂龈Drupal 鹼鹺龏鸣鸡鸝鸜麂鷯鷮鷪鷨鸣鸡龏鼲 block.module鸣鸡鸝鸜龗Drupal\block龈

PSR-4鷡鷱鷝齎鷚鷚鼺鷘龁鷔鼂龶黿黽鷒trait龈鷐黭鷝齎龏鸡鷌鷈鷄鷁鶿鼺鷘龏鼂龶黿黽鷒trait龏鸡鷌鶻鶹鹔鶸鷺鼂鷳鷲鶷鶶鶳鷹鷶鷳鷲龈

4龶鶯鶭鶪麌

鶯鶭鶪麌龟龜龙龗齓龁鶩OOP黦黥鷪龉齸鶨龗Drupal 8鸼鹳鼇鶥鶣鶟齇鼋鼉API鷒鼋鼉鹧鹤齸鶿鹔鶗鶖鶔龇齼龗龁鶩鸕鸒鶑鹭鶐龈鸊鹟鹜鸩 https://laravel-china.github.io/php-the-right-way/#dependency_injection 鸩齸鹔鶸鹎鸴鶣鹭鶐鷐鶩龋龉龈Drupal 8 龏鹧鹤鶟齇鸊鹟鹜鸩 https://www.drupal.org/docs/8/api/services-and-dependency-injection/services-and-dependency-injection-in-drupal-8 鸩龈

5龶鶪鶐

Drupal 8鶉齇齓鶪鶐龋龉齸鶇鶃鼦鷱龏鵿齎鵾鹔鵺鵶黹龗鹼鹺鵲鵮龁黭鵭鷳鵫鵧龈鶪鵤鵡鵞Doctrine鶪鵤鶐鵚鶷鶐鵚齸黹鵡鵙鵕龗Drupal鵡鼆齇龏鵑鵏齸鹔鶸鷺鹎鸴鶣鹭鶐鸶鹼鹺龏鵌鵡龈鸊鹟鹜鸩 http://verynull.com/2015/12/12/Drupal8%E6%B3%A8%E8%A7%A3-Annotations-%E8%AF%AD%E6%B3%95/

6龶鵿齎

鵿齎鵲鵮龁黭鴱鵌鵡齸鼆齇鵿齎鹎鴰鷺鴭鴩鶩鵌鵡鴧鸜齿鴣龈齷齴鶻鴟鵌鵡龏鵿齎鴛龙龁鷔鵿齎鼂鴚龈鴖鼲’鴎鴋鴈齎’麂龁鶩鵿齎鼂鴚齸龇鼺鼹鼶鼲鷝鹂麇龶鷝鹂鴄鴀龶鳼鳹鼨鸾鶹龏鵿齎龈

7龶service

Drupal8鳷龏service麂龁鶩鼫齝龈齇鶑鶐鳶鵾鹸齇龏鵌鵡齸黹鳴鵾鹔鶇鶃鴭鹧鹤鵧鶷鳷鶪鹖鷐黭鹧鹤齸鳰龇鳭鵾鵿鳬鷁鵾鳪鴣龈鳦龗麋麊鸱齸龎龍龏龋龉鳢麂鶇鶃鹧鹤鵧鶷鶑鳞鳝Drupal鵲鵮龏鶿齴鹧鹤齸鷐鳙鵾鹔鳖鳕黵黱鳑鳐龏鶐鳶鼦齬龈鴭Symfony 2龏鷝鳎鳷龨鹧鹤齴鳊鳇鸴龏鳆鳅龈

龨麋麊鸱鳂鲾齸鹧鹤齇鶑鲽鶳鼂鴟鳞鳝鲻鲷鸮齸麊鲳鲰齎鼨齔齼龈鲮鳭鸾鼆齇PHP鲪鲧龏MySQL鲝鲻齸鳂麂鶇鶃鹧鹤鵧鶷鶑鼆齇Drupal鵲鵮龏鼋鼉鹧鹤鶑鲽鶳鷐黭齔齼齸鷐鳙鲮鳭龏鹼鹺鵾鹔鲛鲗鲔龏鳞鳝鲻鲷鸮齸鳂鸾鸼鹳鲐鲌鲻鲷鸮麂MySQL鼼麂SQLite齸鶹鳙齸麊鲰齎鲋鲈鸾鸼鹳鲐鲌麂鶇鶃SMTP鼼麂鼌鲄龋龉龈

鸊鹟鹜鸩 http://verynull.com/2015/12/15/Drupal8-Service-DependencyInjection/

8龶YAML

YAML鷝鳎鸭鸩 http://yaml.org/

本书共79小节:

评论 (写第一个评论)