Skip to content

Commit

Permalink
added dealing with autoloader in a way that allows use in require-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug committed Apr 13, 2016
1 parent 7a33aa1 commit 482fcb4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions verify.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<?php

include(__DIR__."/vendor/autoload.php");

$baseAutoloader = __DIR__."/vendor/autoload.php";
if (file_exists($baseAutoloader)) {
require_once($baseAutoloader);
} else {
// Otherwise, we're probably included via require-dev
require_once("vendor/autoload.php");
}

$application = new \Symfony\Component\Console\Application("SyringeVerifier", "1.0");
$application->add(new \Silktide\SyringeVerifier\VerifyCommand());
Expand Down

0 comments on commit 482fcb4

Please sign in to comment.