PHP Mediator-pattern Resources