MidwestPHP Symfony2 Internals

download MidwestPHP Symfony2 Internals

of 102

  • date post

    10-May-2015
  • Category

    Technology

  • view

    5.610
  • download

    1

Embed Size (px)

Transcript of MidwestPHP Symfony2 Internals

  • 1.Symfony2 InternalsRal Fraile

2. Who am I? 3. Ral Fraile Software developer at I live in Spain PHP 5.3 Zend Certied Engineer Symfony Certied Developer Symfony2 lover LadybugPHP: Simple and extensible PHP dumper Future dad @raulfraile 4. Should I care aboutSymfony2 internals? 5. Yes! 6. http://xkcd.com/676/ 7. Topics 8. 1. Symfony2 components2. Composer3. Autoloading & PSR-04. Request & Response5. Demo 16. Symfony2 full-stack framework7. Events8. Demo 2 9. Components 10. Set of decoupled and standalone libraries 11. Implement common featuresneeded to develop websites 12. The foundation of theSymfony2 full-stack framework 13. BrowserKitFinder Security ClassLoader Form SerializerCong HttpFoundationTemplating ConsoleHttpKernelTranslationCssSelector Locale ValidatorDependencyInjection ProcessYaml DomCrawler OptionsResolverEventDispatcher Routing 14. BrowserKitFinder Security ClassLoader Form SerializerCong HttpFoundationTemplating ConsoleHttpKernelTranslationCssSelector Locale ValidatorDependencyInjection ProcessYaml DomCrawler OptionsResolver PropertyAccess 2.2.0EventDispatcher Routing StopWatch 15. Whos using them? 16. Components demo... 17. ... after some concepts 18. Composer 19. Composer is a dependency manager for PHP 20. {"require": {"symfony/http-foundation": "v2.2.0","doctrine/orm": ">=2.2.3",}} 21. $ composer install 22. Autoload 23. Triggered whenever we need a class or interface not already dened 24. Fully Qualified Name (FQN) File 25. Fully Qualified Name (FQN)DoctrineDBALDriverFile 26. Fully Qualified Name (FQN) DoctrineDBALDriver[lib_path]/Doctrine/DBAL/Driver.phpFile 27. Fully Qualified Name (FQN) DoctrineDBALDriver Twig_Lexer[lib_path]/Doctrine/DBAL/Driver.phpFile 28. Fully Qualified Name (FQN) DoctrineDBALDriver Twig_Lexer[lib_path]/Doctrine/DBAL/Driver.php[lib_path]/Twig/Lexer.phpFile 29. bool spl_autoload_register([callable $autoload_function,[bool $throw = true,[bool $prepend = false]]]) 30.