silverstripe-framework/bin/sake

16 lines
363 B
Plaintext
Raw Normal View History

#!/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();