~/talk

Code decoupling from Symfony (and others frameworks)

Talkat PHPConf.Asia 2018 · 2018-09-27..09-28· [php, software-architecture]
slides:none on file

Company refactors a decade-old POS into a framework-agnostic core by isolating entities, repositories, services, implementing repository interfaces with Doctrine only at the edges, and moving business flows into services that use event-driven service communication instead of direct calls. Controllers and views remain thin I/O adapters, tests and newer PHP versions live in the new module, and the old system keeps running. Work spans about two years, follows Law of Demeter and SRP, and warns this decoupling suits large or long-lived projects only.

AI-written summary · about

  1. 0:00Start
  2. 1:26Why?
  3. 2:25Our approach
  4. 4:40Benefits of decoupling
  5. 10:05Entity
  6. 11:13Repository
  7. 13:24Service
  8. 15:10Controller - View
~/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.