CoolFace
Apppublic

kenken999/php

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
artisan54 linesDownload Raw Back to php
1#!/usr/bin/env php2<?php3 4define('LARAVEL_START', microtime(true));5 6/*7|--------------------------------------------------------------------------8| Register The Auto Loader9|--------------------------------------------------------------------------10|11| Composer provides a convenient, automatically generated class loader12| for our application. We just need to utilize it! We'll require it13| into the script here so that we do not have to worry about the14| loading of any of our classes manually. It's great to relax.15|16*/17 18require __DIR__.'/vendor/autoload.php';19 20$app = require_once __DIR__.'/bootstrap/app.php';21 22/*23|--------------------------------------------------------------------------24| Run The Artisan Application25|--------------------------------------------------------------------------26|27| When we run the console application, the current CLI command will be28| executed in this console and the response sent back to a terminal29| or another output device for the developers. Here goes nothing!30|31*/32 33$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);34 35$status = $kernel->handle(36    $input = new Symfony\Component\Console\Input\ArgvInput,37    new Symfony\Component\Console\Output\ConsoleOutput38);39 40/*41|--------------------------------------------------------------------------42| Shutdown The Application43|--------------------------------------------------------------------------44|45| Once Artisan has finished running, we will fire off the shutdown events46| so that any final work may be done by the application before we shut47| down the process. This is the last thing to happen to the request.48|49*/50 51$kernel->terminate($input, $status);52 53exit($status);54