Skip to content

Instantly share code, notes, and snippets.

View matthias-chlechowitz's full-sized avatar

Matthias Chlechowitz matthias-chlechowitz

View GitHub Profile
@matthias-chlechowitz
matthias-chlechowitz / parameter_removal.php
Created February 6, 2015 16:40
Remove all parameter definitions from container definitions (read: *.xml) and replace the parameters with the actual class names
<?php
use Symfony\Component\Finder\Finder;
require_once('../app/autoload.php');
$finder = new Finder();
$finder->files()->in(__DIR__)->name('*.xml');
// run through all found files
foreach ($finder as $file) {