File tree Expand file tree Collapse file tree 12 files changed +24
-24
lines changed Expand file tree Collapse file tree 12 files changed +24
-24
lines changed Original file line number Diff line number Diff line change 1- Create your own framework... on top of the Symfony2 Components (part 1)
2- =======================================================================
1+ Introduction
2+ ============
33
44Symfony2 is a reusable set of standalone, decoupled, and cohesive PHP
55components that solve common web development problems.
Original file line number Diff line number Diff line change 1- Create your own framework... on top of the Symfony2 Components (part 2)
2- =======================================================================
1+ The HttpFoundation Component
2+ ============================
33
44Before we dive into the code refactoring, I first want to step back and take a
55look at why you would like to use a framework instead of keeping your
Original file line number Diff line number Diff line change 1- Create your own framework... on top of the Symfony2 Components (part 3)
2- =======================================================================
1+ The Front Controller
2+ ====================
33
44Up until now, our application is simplistic as there is only one page. To
55spice things up a little bit, let's go crazy and add another page that says
Original file line number Diff line number Diff line change 1- Create your own framework... on top of the Symfony2 Components (part 4)
2- =======================================================================
1+ The Routing Component
2+ =====================
33
44Before we start with today's topic, let's refactor our current framework just
55a little to make templates even more readable::
Original file line number Diff line number Diff line change 1- Create your own framework... on top of the Symfony2 Components (part 5)
2- =======================================================================
1+ Templating
2+ ==========
33
44The astute reader has noticed that our framework hardcodes the way specific
55"code" (the templates) is run. For simple pages like the ones we have created
Original file line number Diff line number Diff line change 1- Create your own framework... on top of the Symfony2 Components (part 6)
2- =======================================================================
1+ The HttpKernel Component: the Controller Resolver
2+ =================================================
33
44You might think that our framework is already pretty solid and you are
55probably right. But let's see how we can improve it nonetheless.
Original file line number Diff line number Diff line change 1- Create your own framework... on top of the Symfony2 Components (part 7)
2- =======================================================================
1+ The Separation of Concerns
2+ ==========================
33
44One down-side of our framework right now is that we need to copy and paste the
55code in ``front.php `` each time we create a new website. 40 lines of code is
Original file line number Diff line number Diff line change 1- Create your own framework... on top of the Symfony2 Components (part 8)
2- =======================================================================
1+ Unit Testing
2+ ============
33
44Some watchful readers pointed out some subtle but nonetheless important bugs
55in the framework we have built yesterday. When creating a framework, you must
Original file line number Diff line number Diff line change 1- Create your own framework... on top of the Symfony2 Components (part 9)
2- =======================================================================
1+ The EventDispatcher Component
2+ =============================
33
44Our framework is still missing a major characteristic of any good framework:
55*extensibility *. Being extensible means that the developer should be able to
Original file line number Diff line number Diff line change 1- Create your own framework... on top of the Symfony2 Components (part 10)
2- ========================================================================
1+ The HttpKernel Component: HttpKernelInterface
2+ =============================================
33
44In the conclusion of the second part of this series, I've talked about one
55great benefit of using the Symfony2 components: the *interoperability * between
You can’t perform that action at this time.
0 commit comments