• Like
  • Save
Drupal 8 - What to learn from Symfony
 

Drupal 8 - What to learn from Symfony

on

  • 411 views

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

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

Statistics

Views

Total Views
411
Views on SlideShare
245
Embed Views
166

Actions

Likes
1
Downloads
0
Comments
0

3 Embeds 166

http://www.exove.com 111
http://www.exove.fi 53
http://www.exove.ee 2

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Drupal 8 - What to learn from Symfony Drupal 8 - What to learn from Symfony Presentation Transcript

    • 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 core/vendor/symfony-cmf  What of that do we need to learn in order to start developing modules for Drupal 8?
    • 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
    • Routing  No more paths in hook_menu().  Routing matches Request to a Response Imagesource:https://drupal.org/developing/api/8/routing
    • 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
    • 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
    • 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  Real unit testing uses PHPUnit
    • 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…
    • Drupal 8 is coming.