Last month, during PHP Advent,
gwoo wrote an interesting post on
Aspect-Oriented Design, or Aspect Oriented Programming (AOP) as it is more
commonly known. The article got me to thinking, and revisiting what I know about
AOP, Intercepting Filters, and Signal Slots — in particular, what use cases I
see for them, what the state of current PHP offerings are, and where the future
But first, some background is probably in order, as this is a jargon-heavy post.
For the past month, I’ve been immersed in PHP 5.3 as I and my team have
started work on Zend Framework 2.0.
PHP 5.3 offers a slew of new language features, many of which were developed
to assist framework and library developers. Most of the time, these features
are straight-forward, and you can simply use them; in other cases, however,
we’ve run into behaviors that were unexpected. This post will detail several
of these, so you either don’t run into the same issues — or can
capitalize on some of our discoveries.