Skip to content

Commit

Permalink
Fix autoload.php file path
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelmysior committed Aug 11, 2018
1 parent 25f63a6 commit 7581e61
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion laravel-localize
@@ -1,7 +1,11 @@
#!/usr/bin/env php
<?php

require __DIR__.'/vendor/autoload.php';
if (file_exists(__DIR__.'/../../autoload.php')) {
require __DIR__.'/../../autoload.php';
} else {
require __DIR__.'/vendor/autoload.php';
}

$app = new Symfony\Component\Console\Application('Laravel Localize', '1.0.0');
$command = new PawelMysior\LaravelLocalize\LocalizeCommand();
Expand Down

0 comments on commit 7581e61

Please sign in to comment.