annotate vendor/sabre/vobject/bin/vobject @ 14:ba938c2e7146

autogenerated
author Charlie Root
date Sat, 13 Jan 2018 09:42:22 -0500
parents 430dbd5346f7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
1 #!/usr/bin/env php
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
2 <?php
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
3
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
4 namespace Sabre\VObject;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
5
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
6 // This sucks.. we have to try to find the composer autoloader. But chances
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
7 // are, we can't find it this way. So we'll do our bestest
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
8 $paths = array(
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
9 __DIR__ . '/../vendor/autoload.php', // In case vobject is cloned directly
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
10 __DIR__ . '/../../../autoload.php', // In case vobject is a composer dependency.
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
11 );
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
12
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
13 foreach($paths as $path) {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
14 if (file_exists($path)) {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
15 include $path;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
16 break;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
17 }
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
18 }
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
19
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
20 if (!class_exists('Sabre\\VObject\\Version')) {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
21 fwrite(STDERR, "Composer autoloader could not be loaded.\n");
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
22 die(1);
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
23 }
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
24
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
25 $cli = new Cli();
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
26 exit($cli->main($argv));
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
27