/** * Returns the supported files using the extensions from the loaders in the entity which is a directory * * @see \M1\Vars\Loader\LoaderProvider::getExtensions() \M1\Vars\Loader\LoaderProvider::getExtensions() * @see \M1\Vars\Loader\LoaderProvider::makeLoaders() \M1\Vars\Loader\LoaderProvider::makeLoaders() * * @param string $entity The resource entity * * @return array|bool Returns the supported files or false if no files were found */ private function getSupportedFilesInDir($entity) { $dir_loader = new DirectoryLoader($entity, $this->recursive); $dir_loader->setSupports($this->vars->loader->getExtensions()); $dir_loader->load(); return $dir_loader->getContent(); }