forked from plzdontshare/cloudflareimport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloud.php
18 lines (14 loc) · 826 Bytes
/
cloud.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
require_once 'init.php';
require 'vendor/autoload.php';
$config = include './config.php';
$cloud = new Cloudflare\Api($config['cloudflare']['email'], $config['cloudflare']['key']);
$app = new \PlzDontShare\CloudFlareImport\App($cloud, $config);
$console = new \Symfony\Component\Console\Application;
$console->add(new \PlzDontShare\CloudFlareImport\Console\VersionCommand($app));
$console->add(new \PlzDontShare\CloudFlareImport\Console\ChangeIPCommand($app));
$console->add(new \PlzDontShare\CloudFlareImport\Console\ShowDomainsCommand($app));
$console->add(new \PlzDontShare\CloudFlareImport\Console\AddDomainsCommand($app));
$console->add(new \PlzDontShare\CloudFlareImport\Console\AddSubdomainsCommand($app));
$console->add(new \PlzDontShare\CloudFlareImport\Console\RemoveDomainsCommand($app));
$console->run();