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

评论 (写第一个评论)