protected function getProvider($objectClass) { if (!array_key_exists($objectClass, $this->objectProviders)) { throw new ProviderNotFoundException($objectClass); } return $this->objectProviders[$objectClass]; }