Keep sample bootstrap purely in samples
This commit is contained in:
parent
cfb8b2f9e3
commit
5f413b8a58
|
@ -4,7 +4,7 @@
|
||||||
use PhpOffice\PhpSpreadsheet\Calculation\Calculation;
|
use PhpOffice\PhpSpreadsheet\Calculation\Calculation;
|
||||||
use PhpOffice\PhpSpreadsheet\DocumentGenerator;
|
use PhpOffice\PhpSpreadsheet\DocumentGenerator;
|
||||||
|
|
||||||
require_once __DIR__ . '/../src/Bootstrap.php';
|
require_once 'vendor/autoload.php';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$phpSpreadsheetFunctionsProperty = (new ReflectionClass(Calculation::class))->getProperty('phpSpreadsheetFunctions');
|
$phpSpreadsheetFunctionsProperty = (new ReflectionClass(Calculation::class))->getProperty('phpSpreadsheetFunctions');
|
||||||
|
@ -19,6 +19,6 @@ try {
|
||||||
DocumentGenerator::generateFunctionListByName($phpSpreadsheetFunctions)
|
DocumentGenerator::generateFunctionListByName($phpSpreadsheetFunctions)
|
||||||
);
|
);
|
||||||
} catch (ReflectionException $e) {
|
} catch (ReflectionException $e) {
|
||||||
fwrite(STDERR, (string)$e);
|
fwrite(STDERR, (string) $e);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ use PhpOffice\PhpSpreadsheet\Helper\Sample;
|
||||||
use PhpOffice\PhpSpreadsheet\IOFactory;
|
use PhpOffice\PhpSpreadsheet\IOFactory;
|
||||||
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
||||||
|
|
||||||
require_once __DIR__ . '/../../src/Bootstrap.php';
|
require_once __DIR__ . '/../Bootstrap.php';
|
||||||
|
|
||||||
$helper = new Sample();
|
$helper = new Sample();
|
||||||
if ($helper->isCli()) {
|
if ($helper->isCli()) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ use PhpOffice\PhpSpreadsheet\Helper\Sample;
|
||||||
use PhpOffice\PhpSpreadsheet\IOFactory;
|
use PhpOffice\PhpSpreadsheet\IOFactory;
|
||||||
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
||||||
|
|
||||||
require_once __DIR__ . '/../../src/Bootstrap.php';
|
require_once __DIR__ . '/../Bootstrap.php';
|
||||||
|
|
||||||
$helper = new Sample();
|
$helper = new Sample();
|
||||||
if ($helper->isCli()) {
|
if ($helper->isCli()) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ use PhpOffice\PhpSpreadsheet\Helper\Sample;
|
||||||
use PhpOffice\PhpSpreadsheet\IOFactory;
|
use PhpOffice\PhpSpreadsheet\IOFactory;
|
||||||
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
||||||
|
|
||||||
require_once __DIR__ . '/../../src/Bootstrap.php';
|
require_once __DIR__ . '/../Bootstrap.php';
|
||||||
|
|
||||||
$helper = new Sample();
|
$helper = new Sample();
|
||||||
if ($helper->isCli()) {
|
if ($helper->isCli()) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ use PhpOffice\PhpSpreadsheet\Helper\Sample;
|
||||||
use PhpOffice\PhpSpreadsheet\IOFactory;
|
use PhpOffice\PhpSpreadsheet\IOFactory;
|
||||||
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
||||||
|
|
||||||
require_once __DIR__ . '/../../src/Bootstrap.php';
|
require_once __DIR__ . '/../Bootstrap.php';
|
||||||
|
|
||||||
$helper = new Sample();
|
$helper = new Sample();
|
||||||
if ($helper->isCli()) {
|
if ($helper->isCli()) {
|
||||||
|
|
|
@ -6,7 +6,7 @@ use PhpOffice\PhpSpreadsheet\Helper\Sample;
|
||||||
|
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
|
||||||
require_once __DIR__ . '/../src/Bootstrap.php';
|
require_once __DIR__ . '/Bootstrap.php';
|
||||||
|
|
||||||
$helper = new Sample();
|
$helper = new Sample();
|
||||||
|
|
||||||
|
|
|
@ -4,5 +4,3 @@ setlocale(LC_ALL, 'en_US.utf8');
|
||||||
|
|
||||||
// PHP 5.3 Compat
|
// PHP 5.3 Compat
|
||||||
date_default_timezone_set('Europe/London');
|
date_default_timezone_set('Europe/London');
|
||||||
|
|
||||||
require_once __DIR__ . '/../src/Bootstrap.php';
|
|
||||||
|
|
Loading…
Reference in New Issue