Your SlideShare is downloading. ×
DRUPAL 8 –
WHAT TO LEARN FROM SYMFONY?
Joonas Iivonen
Senior Developer
Symfony2 in D8
 Drupal 8 will use Symfony components…
What does that mean?
 Go and check D8’s core/vendor/symfony
and co...
OO, Namespaces,…
 Ok, not really Symfony
 Drupal 8 is much more Object-Oriented
and uses Namespace than before
 Most of...
Routing
 No more paths in hook_menu().
 Routing matches Request to a Response
Imagesource:https://drupal.org/developing/...
Routing
 Routing file
modules/example/example.routing.yml
 Or routing method returning an array of
SymfonyComponentRouti...
Services
 Services are decoupled reusable
functionalities like database or emailer
 Modules can define services in
modul...
Twig
 Ok, not really Symfony again
 Twig is the new templating engine
 Much nicer than the old PHP templates
PHPUnit
 Yes. This is not Symfony either
 Simpletest is still used for web tests and
DrupalUnitTests that need Drupal
 ...
And there is more
 Symfony
 EventDispatcher
 ClassLoader
 Validator
 Translation
 Process
 Serializer
 Composer
 ...
Drupal 8 is coming.
Upcoming SlideShare
Loading in...5
×

Drupal 8 - What to learn from Symfony

491

Published on

Drupal 8 is based on Symfony framework. What are the key pieces to learn for Drupal developers?

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
491
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Drupal 8 - What to learn from Symfony"

  1. 1. DRUPAL 8 – WHAT TO LEARN FROM SYMFONY? Joonas Iivonen Senior Developer
  2. 2. Symfony2 in D8  Drupal 8 will use Symfony components… What does that mean?  Go and check D8’s core/vendor/symfony and core/vendor/symfony-cmf  What of that do we need to learn in order to start developing modules for Drupal 8?
  3. 3. OO, Namespaces,…  Ok, not really Symfony  Drupal 8 is much more Object-Oriented and uses Namespace than before  Most of configuration is in YAML files
  4. 4. Routing  No more paths in hook_menu().  Routing matches Request to a Response Imagesource:https://drupal.org/developing/api/8/routing
  5. 5. Routing  Routing file modules/example/example.routing.yml  Or routing method returning an array of SymfonyComponentRoutingRoute objects or a SymfonyComponentRoutingRouteCollection object  Also possible to alter routes by extending DrupalCoreRoutingRouteSubscriberBase
  6. 6. Services  Services are decoupled reusable functionalities like database or emailer  Modules can define services in modules/example/example.services.yml file  Services are provided to objects using dependency injection
  7. 7. Twig  Ok, not really Symfony again  Twig is the new templating engine  Much nicer than the old PHP templates
  8. 8. PHPUnit  Yes. This is not Symfony either  Simpletest is still used for web tests and DrupalUnitTests that need Drupal  Real unit testing uses PHPUnit
  9. 9. And there is more  Symfony  EventDispatcher  ClassLoader  Validator  Translation  Process  Serializer  Composer  Doctrine / Annotations  Guzzle, HTTP client  Assetic  EasyRDF  PSR-3 logging  Zend / Feed + all the new or changed Drupal concepts like Plugins, Entity API, Fields, Forms…
  10. 10. Drupal 8 is coming.

×