DRUPAL 8 –
WHAT TO LEARN FROM SYMFONY?
Symfony2 in D8
Drupal 8 will use Symfony components…
What does that mean?
Go and check D8’s core/vendor/symfony
What of that do we need to learn in order to
start developing modules for Drupal 8?
Ok, not really Symfony
Drupal 8 is much more Object-Oriented
and uses Namespace than before
Most of configuration is in YAML files
No more paths in hook_menu().
Routing matches Request to a Response
Or routing method returning an array of
Also possible to alter routes by extending
Services are decoupled reusable
functionalities like database or emailer
Modules can define services in
Services are provided to objects using
Ok, not really Symfony again
Twig is the new templating engine
Much nicer than the old PHP templates
Yes. This is not Symfony either
Simpletest is still used for web tests and
DrupalUnitTests that need Drupal
Real unit testing uses PHPUnit
And there is more
Doctrine / Annotations
Guzzle, HTTP client
Zend / Feed
+ all the new or changed Drupal concepts like
Plugins, Entity API, Fields, Forms…