Inversion of Control in PHP5