Skip to content

Commit

Permalink
Issue #34 - Checking multiple paths for composer generated autoloader.
Browse files Browse the repository at this point in the history
  • Loading branch information
sqmk committed Jan 4, 2013
1 parent 1b9e69a commit 8a8d3a1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion bin/phue-authenticate
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/usr/bin/env php
<?php

require_once __DIR__ . '/../vendor/autoload.php';
if (is_file(__DIR__ . '/../vendor/autoload.php')) {
require_once __DIR__ . '/../vendor/autoload.php';
} else {
require_once __DIR__ . '/../../../autoload.php';
}

// Show usage if host and username not passed
if (!isset($argv[1], $argv[2])) {
Expand Down
6 changes: 5 additions & 1 deletion bin/phue-bridge-finder
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/usr/bin/env php
<?php

require_once __DIR__ . '/../vendor/autoload.php';
if (is_file(__DIR__ . '/../vendor/autoload.php')) {
require_once __DIR__ . '/../vendor/autoload.php';
} else {
require_once __DIR__ . '/../../../autoload.php';
}

echo "Philips Hue Bridge Finder", "\n\n";

Expand Down
6 changes: 5 additions & 1 deletion bin/phue-light-finder
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/usr/bin/env php
<?php

require_once __DIR__ . '/../vendor/autoload.php';
if (is_file(__DIR__ . '/../vendor/autoload.php')) {
require_once __DIR__ . '/../vendor/autoload.php';
} else {
require_once __DIR__ . '/../../../autoload.php';
}

// Show usage if host and username not passed
if (!isset($argv[1], $argv[2])) {
Expand Down
6 changes: 5 additions & 1 deletion bin/phue-list-lights
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/usr/bin/env php
<?php

require_once __DIR__ . '/../vendor/autoload.php';
if (is_file(__DIR__ . '/../vendor/autoload.php')) {
require_once __DIR__ . '/../vendor/autoload.php';
} else {
require_once __DIR__ . '/../../../autoload.php';
}

// Show usage if host and username not passed
if (!isset($argv[1], $argv[2])) {
Expand Down

0 comments on commit 8a8d3a1

Please sign in to comment.