This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
converter.php
41 lines (30 loc) · 1.54 KB
/
converter.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
<?php
// Load the composer autoload
require_once(__DIR__ . '/vendor/autoload.php');
require_once(__DIR__ . '/src/SplClassLoader.php');
$classLoaderBlogwerk = new SplClassLoader('Blogwerk', __DIR__ . '/src');
$classLoaderBlogwerk->register();
$classLoaderComotive = new SplClassLoader('Comotive', __DIR__ . '/src');
$classLoaderComotive->register();
$classLoaderComotive = new SplClassLoader('zepi', __DIR__ . '/src');
$classLoaderComotive->register();
echo
' ' . PHP_EOL .
' _____ _____ _____ _____ __ _____ _ ' . PHP_EOL .
' | __| | | | | | | | |___ ___ _ _ ___ ___| |_ ___ ___ ' . PHP_EOL .
' |__ | | | | -| | | | | |__ | --| . | | | | -_| _| _| -_| _| ' . PHP_EOL .
' |_____|_|_|_|__|__| |_|_|_|_____| |_____|___|_|_|\_/|___|_| |_| |___|_| ' . PHP_EOL .
' ' . PHP_EOL .
' powered by zepi.net & comotive.ch ' . PHP_EOL . PHP_EOL;
// Load the core
$core = new Blogwerk\CliCore();
$core->declareArguments();
// Load the configuration
$configuration = new Blogwerk\Configuration($core);
$configuration->readFromFile();
// Define the host url as HTTP_HOST
$_SERVER['HTTP_HOST'] = $configuration->get('wordpress', 'siteUrl');
// Create the converter process controller
$converter = new Blogwerk\Converter($core, $configuration);
// Convert the data
$converter->convert();