/** * Returns true if the given service is defined. * * @param string $id The service identifier * * @return Boolean true if the service is defined, false otherwise */ public function has($id) { return isset($this->definitions[$id]) || isset($this->aliases[$id]) || parent::has($id); }