Skip to content

Instantly share code, notes, and snippets.

@EmanueleMinotto
Forked from gnugat/importer.php
Last active September 16, 2015 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EmanueleMinotto/95ddd1787b45ed25983e to your computer and use it in GitHub Desktop.
Save EmanueleMinotto/95ddd1787b45ed25983e to your computer and use it in GitHub Desktop.
<?php
// File: app/config/importer.php
use Symfony\Component\Finder\Finder;
$finder = new Finder();
$files = $finder->files()->name('*.yml')->in(__DIR__.'/services')->in(__DIR__.'/vendors');
foreach ($files as $file) {
$loader->import($file->getRealpath());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment