-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjtg
More file actions
24 lines (19 loc) · 646 Bytes
/
jtg
File metadata and controls
24 lines (19 loc) · 646 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env php
<?php
use Jtg\Commands\CreateProperty;
use Jtg\Commands\ListProperties;
use Jtg\Commands\ShowProperty;
use Jtg\Commands\SearchProperties;
require_once __DIR__ . '/vendor/autoload.php';
// Create the Application
$application = new Symfony\Component\Console\Application('jtg', '1.2 (stable)');
// Create Property Command
$application->add(new CreateProperty);
// List Properties Command
$application->add(new ListProperties);
// Show Property by ID Command
$application->add(new ShowProperty);
// Search for Properties by Status / Price / Beds Command
$application->add(new SearchProperties);
// Run it
$application->run();