The Dependency plugin for CakePHP provides a dependency injection container and service registry/locator.