symfony y drupal

25

Upload: juan-pablo-novillo-requena

Post on 08-May-2015

4.372 views

Category:

Technology


1 download

DESCRIPTION

Charla de Symfony2 y Drupal en Desymfony 2013. http://desymfony.com/ponencia/2013/symfony-y-drupal

TRANSCRIPT

Page 1: Symfony y Drupal
Page 2: Symfony y Drupal
Page 3: Symfony y Drupal

Acerca de mí

Drupal Developer en

Maintainer de algunos móduloscomo Twitter o OAuth (juampy).

Autor de Drush User's Guide

Page 4: Symfony y Drupal

Acerca de Drupal

Page 5: Symfony y Drupal

2% de la Web usa DrupalFuente: http://buytaert.net/

Page 6: Symfony y Drupal

Eventos en todo el mundo

http://www.garfieldtech.com/presentations/sflportland-drupal8-symfony2/#/2/3

Page 7: Symfony y Drupal

Pero...

Drupal es unproyectoOpen Sourceque se creó hace12 años.

Toca saldar deudatécnica.

http://3.bp.blogspot.com

Page 8: Symfony y Drupal
Page 9: Symfony y Drupal
Page 10: Symfony y Drupal

http://buytaert.net/the-future-is-a-restful-drupal

Febrero 2012: primera reunión (presencial)

Page 11: Symfony y Drupal

¿Qué se ha hecho hasta ahora?

http://m.forocoches.com

Page 12: Symfony y Drupal

ClassLoader● Carga automática de clases (PSR-0).

● Reemplaza al registro de clases de Drupal.

Page 13: Symfony y Drupal

HTTP Foundation y HttpKernel

Page 14: Symfony y Drupal

RoutingReemplaza hook_menu() por mimodulo.routing.yml + Controller/Form.

Page 15: Symfony y Drupal

Routing (2)En hook_menu() sólo queda el título de la página.

Page 16: Symfony y Drupal

Routing (3)En dblog.routing.yml: la ruta, reglas de acceso y controllador.

Page 17: Symfony y Drupal

Routing (4)En el controllador, la lógica de control.

Page 18: Symfony y Drupal

EventDispatcherComo nuestros hooks, pero:

● OOO● Agrupables● Testeables

En Drupal 8 convivirá con loshooks.

Drupal 9 no tendrá hooks.

http://img.desmotivaciones.es

Page 19: Symfony y Drupal

DependencyInjectionPor fin :D

Para código procedural, Drupal::service('id') :(

Page 20: Symfony y Drupal

Doctrine (common)Sólo para procesar annotations.

Page 21: Symfony y Drupal

Otros proyectos OS incorporados

JQuery Backbone

CKEditor Modrnizr Farbtastic Grippie

Normalize Composer

PHPUnit Guzzle Zend Feed

Page 22: Symfony y Drupal

Al fin... test unitarios de verdad

http://www.carlescliment.com/blog/testing-unitario-drupal

Page 23: Symfony y Drupal

¿Y qué pinto yo en todo esto?

https://drupal.org/getting-involved

IRC: #Drupal-Contribute y #Drupal-WSCCI

https://drupal.org/project/drupal/git-instructions

Page 24: Symfony y Drupal

¡Gracias! ¿Preguntas?

http://about.me/juampy

@juampy72

Page 25: Symfony y Drupal

Recursoshttp://buytaert.net/the-future-is-a-restful-drupalhttp://2012.drupalcamp.es/sites/default/files/slides/symfony-drupal-8.pdfhttp://www.garfieldtech.com/presentations/dcmunich2012-wsccihttp://crossfunctional.net/blog/2013/mar/symfony-components-in-drupal-8http://symfony.com/blog/symfony2-meets-drupal-8https://speakerdeck.com/player/4f6a3e51d171350022008299?slide=1#http://previousnext.com.au/blog/understanding-drupal-8s-plugin-systemhttp://blog.erdfisch.de/2012/09/hands-introduction-drupal-8-plugin-systemhttps://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.mdhttps://github.com/Crell/slides-drupal8-symfony2