Made type hint into LoaderInterface from XmlFileLoader