17. TWIG TEMPLATES - BENEFITS
MAJOR COMPONENTS IN CORE
• Powerful, supporting macros, i18n, extensions, template
inheritance.
• Secure
• It will bring Symphony and Drupal communities closer, since we
are sharing more and more components
• Filters support
https://github.com/makinacorpus/php-twig-converter
18. WITH CO M POSER
DEPENDENCY MGMT. USING COMPOSER
• PSR-4 autoloader.
• Add composer.json to your custom module X.
• run composer update from webroot.
• Use the PHP library anywhere in the the custom module X or any
other custom Module.
24. PHP UNIT FOR UNIT TESTING
FEATURES
• Actively Maintained.
• Most of the frameworks have shifted down to PHPUNIT e.g.,
symfony, Zend, Cake PHP etc.
• Quicker to test
• Better code coverage compared to simple test.
• Less dependencies & more extensions.
• Integrated with most of the IDEs.
25. IMPROVED CACHING
FEATURES
• Content being rendered are not cache-aware.
• Cache-invalidation is automated for a lot of regions.
• Swappable cache backends
• Introduction of cache contexts for cache variations.
• … and lot more…
31. HTTPFOUNDATION AND HTTPKERNEL
SYMFONY COMPONENTS
• Moving away from concept of hooks & towards Event driven
development.
• Standard Request & Response objects & interacting with them
made super easy
• Drupal built on top of a first-class REST server
• Drupal as a producer now instead of just being a consumer.
• Helped with Web Services and Context Core Initiative
(WSCCI).
32. ROUTIN G
SYMFONY COMPONENTS
• Maps HTTP Request with a set of config variables.
• Routes/paths defined in YAML format as a part of the module
• Action for the routes controlled via module’s classes in D8.
33. EVENT DISPATCHER
SYMFONY COMPONENTS
• Implements Observer pattern
• Starting point for replacement of hook system.
• Powers up the plugin system in D8 as well.
34. CLASSLOADER
SYMFONY COMPONENTS
• Loads project classes when needed rather than loading everything
in the memory always.
• Requires classes to use PSR-4 standard for directory structure.
• namespace DrupalCoreController
• Manual inclusion of classes no longer needed.
37. YAM L
SYMFONY COMPONENTS
• Serves as an integral part for the CMI
• Defining default configuration, exporting configurations from a
site - all YAML
• Good alternative to features module in D7