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小节:

评论 (写第一个评论)