- $loaders = array();
-
- if (count($this->xmlMappings) > 1) {
- $loaders[] = new XmlFilesLoader($this->xmlMappings);
- } elseif (1 === count($this->xmlMappings)) {
- $loaders[] = new XmlFileLoader($this->xmlMappings[0]);
- }
-
- if (count($this->yamlMappings) > 1) {
- $loaders[] = new YamlFilesLoader($this->yamlMappings);
- } elseif (1 === count($this->yamlMappings)) {
- $loaders[] = new YamlFileLoader($this->yamlMappings[0]);
- }
-
- foreach ($this->methodMappings as $methodName) {
- $loaders[] = new StaticMethodLoader($methodName);
- }
-
- if ($this->annotationReader) {
- $loaders[] = new AnnotationLoader($this->annotationReader);
- }
-