Mercurial > hg > rc1
view vendor/sabre/vobject/bin/vobject @ 44:10091cdd9844
upgrade
| author | Charlie Root |
|---|---|
| date | Thu, 28 Aug 2025 10:38:39 -0400 |
| parents | 430dbd5346f7 |
| children |
line wrap: on
line source
#!/usr/bin/env php <?php namespace Sabre\VObject; // This sucks.. we have to try to find the composer autoloader. But chances // are, we can't find it this way. So we'll do our bestest $paths = array( __DIR__ . '/../vendor/autoload.php', // In case vobject is cloned directly __DIR__ . '/../../../autoload.php', // In case vobject is a composer dependency. ); foreach($paths as $path) { if (file_exists($path)) { include $path; break; } } if (!class_exists('Sabre\\VObject\\Version')) { fwrite(STDERR, "Composer autoloader could not be loaded.\n"); die(1); } $cli = new Cli(); exit($cli->main($argv));
