get($id); } /** * Indicates if a service is defined in the container. * * @param string $id * The ID of the service to check. * * @return bool * TRUE if the specified service exists, FALSE otherwise. */ public static function hasService($id) { // @todo Add ->has method to the container to be compatible. return static::$container && static::$container->hasDefinition($id); } }