This repository has been archived by the owner on Sep 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gearsdoc
executable file
·44 lines (41 loc) · 1.61 KB
/
gearsdoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env php
<?php
////////////////////////////////////////////////////////////////////////////////
// __________ __ ________ __________
// \______ \ |__ ______ / _____/ ____ _____ ______\______ \ _______ ___
// | ___/ | \\____ \/ \ ____/ __ \\__ \\_ __ \ | _// _ \ \/ /
// | | | Y \ |_> > \_\ \ ___/ / __ \| | \/ | ( <_> > <
// |____| |___| / __/ \______ /\___ >____ /__| |______ /\____/__/\_ \
// \/|__| \/ \/ \/ \/ \/
// -----------------------------------------------------------------------------
// Designed and Developed by Brad Jones <brad @="bjc.id.au" />
// -----------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////
// Find and load the composer autoloader
if (file_exists(__DIR__.'/vendor/autoload.php'))
{
require_once(__DIR__.'/vendor/autoload.php');
}
elseif (file_exists(__DIR__.'/../../autoload.php'))
{
require_once(__DIR__.'/../../autoload.php');
}
else
{
echo
(
PHP_EOL.
'Oh No! Missing Dependencies!'.PHP_EOL.
'This command requires the composer package manager for PHP.'.PHP_EOL.
'To quickly fix this issue please run the following commands:'.PHP_EOL.
PHP_EOL.
'wget http://getcomposer.org/composer.phar'.PHP_EOL.
'php composer.phar install'.PHP_EOL.
PHP_EOL.
'For more info on what composer is go to: http://getcomposer.org/'.
PHP_EOL
);
exit(1);
}
// Start the console app
Gears\Doc\Console\Application::boot();