public function registerApplication(ApplicationInterface $application) { $this->applications[$application->getId()] = $application; }