Skip to content

Instantly share code, notes, and snippets.

@f3ath
Last active January 29, 2017 07:31
Show Gist options
  • Save f3ath/6f32259df452fbc256c77da301c30652 to your computer and use it in GitHub Desktop.
Save f3ath/6f32259df452fbc256c77da301c30652 to your computer and use it in GitHub Desktop.
#!/usr/bin/env php
<?php
require_once __DIR__ . '/vendor/autoload.php';
$renamedClasses = (new NamespacePrefixAdder())
->addPrefix(
'MyPrefix',
Files::inDirectories(['src', 'test'])
);
(new UsageChanger())
->changeUsageOf(
$renamedClasses,
Files::inDirectories(['src', 'test', 'kohana'])
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment