Skip to content

Commit

Permalink
fixing composer autoload.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Cima committed Apr 10, 2016
1 parent 7e72bb1 commit a76931f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion php-mysql-diff
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/usr/bin/env php
<?php

require __DIR__ . '/vendor/autoload.php';
// installed via composer?
if (file_exists($a = __DIR__ . '/../../autoload.php')) {
require_once $a;
} else {
require_once __DIR__ . '/vendor/autoload.php';
}

use Camcima\MySqlDiff\Command\DiffCommand;
use Camcima\MySqlDiff\Command\MigrateCommand;
Expand Down

0 comments on commit a76931f

Please sign in to comment.