~/talk

Autowire all the things!

TalkinItalianat SymfonyDay 2018 · 2018-10-18..10-19· [php]
slides:none on file

Shows how a Symfony 2 legacy app with >1000 services (Nuvola) was migrated to autowire and autoconfigure, cutting about 5,500 lines of YAML. The migration is done in four steps: enable autowire per-file, add a legacy-alias file that declares public=true and class-name aliases, run container compilation to find and fix injection problems (entity managers, multiple implementations, setter injection, tagged/listener services), then enable service discovery and remove redundant service entries, resulting in a hybrid but working codebase.

AI-written summary · about

  1. 0:00Welcome to Autowire talk
  2. 0:22Introduction
  3. 1:04Autowire definition
  4. 3:58Service Discovery vs Autowire
  5. 5:01Private services
  6. 6:25Scalar arguments
  7. 7:07Autowire recap
  8. 7:30Legacy app migration
  9. 8:13Enable Autowire first
  10. 8:55Define FQCN
  11. 9:57Configure services
  12. 10:42Full Service Discovery
  13. 11:48Validate container
  14. 13:13Autowire errors
  15. 15:18Setter injection
  16. 16:22Listener handling
  17. 17:05False attribute sharing
  18. 17:47Remove redundant services
  19. 18:32Summary
  20. 19:15Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.