PHP Classes

File: bin/console

Recommend this page to a friend!
  Classes of Max Stemplevski   Docker Symfony App   bin/console   Download  
File: bin/console
Role: Example script
Content type: text/plain
Description: Example script
Class: Docker Symfony App
Symfony project to deploy using Docker
Author: By
Last change:
Date: 1 year ago
Size: 492 bytes
 

Contents

Class file image Download
#!/usr/bin/env php
<?php

use App\Kernel;
use
Symfony\Bundle\FrameworkBundle\Console\Application;

if (!
is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
    throw new
LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
}

require_once
dirname(__DIR__).'/vendor/autoload_runtime.php';

return function (array
$context) {
   
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);

    return new
Application($kernel);
};