Inheritance: implements Contao\CoreBundle\Config\ResourceFinderInterface
 /**
  * Returns the target database structure from the database.sql files.
  *
  * @return array An array of tables and fields
  */
 private function getFromFile()
 {
     $return = [];
     /** @var SplFileInfo[] $files */
     $files = $this->finder->findIn('config')->depth(0)->files()->name('database.sql');
     foreach ($files as $file) {
         $return = array_merge_recursive($return, SqlFileParser::parse($file));
     }
     ksort($return);
     return $return;
 }
 /**
  * Tests the findIn() method with an invalid subpath.
  *
  * @expectedException \InvalidArgumentException
  */
 public function testFindInInvalidSubpath()
 {
     $finder = new ResourceFinder([$this->getRootDir() . '/vendor/contao/test-bundle/Resources/contao', $this->getRootDir() . '/system/modules/foobar']);
     $this->assertInstanceOf('Symfony\\Component\\Finder\\Finder', $finder->findIn('foo'));
 }