mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
e46135be0a
- Turn sake into a symfony/console app - Avoid using HTTPRequest for CLI interaction - Implement abstract hybrid execution path
16 lines
363 B
PHP
Executable File
16 lines
363 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
|
|
use SilverStripe\Cli\Sake;
|
|
|
|
// Ensure that people can't access this from a web-server
|
|
if (!in_array(PHP_SAPI, ['cli', 'cgi', 'cgi-fcgi'])) {
|
|
echo 'sake cannot be run from a web request, you have to run it on the command-line.';
|
|
die();
|
|
}
|
|
|
|
require_once __DIR__ . '/../src/includes/autoload.php';
|
|
|
|
$sake = new Sake();
|
|
$sake->run();
|