Skip to content

Commit

Permalink
Merge pull request #66 from kiy0taka/composer_support
Browse files Browse the repository at this point in the history
Composerでインストールする場合の対応
  • Loading branch information
t-nagahashi authored Oct 27, 2017
2 parents 99f63f4 + 5443e32 commit 17c93e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ServiceProvider/EccubeApiServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@

namespace Plugin\EccubeApi\ServiceProvider;

require_once(__DIR__ . '/../vendor/autoload.php');
$autoload = __DIR__ . '/../vendor/autoload.php';
if (file_exists($autoload) && is_readable($autoload)) {
require_once($autoload);
}

use Eccube\Application;
use Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy;
Expand Down

0 comments on commit 17c93e9

Please sign in to comment.