15 lines
362 B
PHP
Executable File
15 lines
362 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
|
|
use IO\ExceptionHandler;
|
|
use IO\Input\ShowInfoArguments;
|
|
use IO\Output\DocumentDetails;
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
|
|
ExceptionHandler::registerCallback();
|
|
|
|
$file = ShowInfoArguments::createFromGlobals()->getFile();
|
|
$document = DocumentFactory::create()->fromFile($file);
|
|
DocumentDetails::of($document)->render();
|