-
Notifications
You must be signed in to change notification settings - Fork 0
/
puscha.php
45 lines (34 loc) · 1009 Bytes
/
puscha.php
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
45
<?php
//
// Pre-flight checks
//
if (version_compare('7.1.3', PHP_VERSION, '>')) {
fwrite(
STDERR,
sprintf(
'This version of Puscha is supported on PHP >7.1.3.' . PHP_EOL .
'You are using PHP %s (%s).' . PHP_EOL,
PHP_VERSION,
PHP_BINARY
)
);
die(1);
}
if (!ini_get('date.timezone')) {
ini_set('date.timezone', 'UTC');
}
//
// Settings things up
//
$loader = require __DIR__.'/vendor/autoload.php';
use Symfony\Component\Console\Application;
//\Doctrine\Common\Annotations\AnnotationRegistry::registerLoader([$loader, 'loadClass']);
//
// Starting the console application
//
$application = new Application('Puscha', '1.0.0-beta.5');
$application->add(new Puscha\Command\Tools\EncryptPasswordCommand());
$application->add(new Puscha\Command\Tools\DecryptPasswordCommand());
$application->add(new Puscha\Command\Tools\TestConfigCommand());
$application->add(new Puscha\Command\RunCommand());
$application->run();