PHP Classes

File: bin/console

Recommend this page to a friend!
  Classes of Nyi Nyi Lwin   Symfony Multi Tenant   bin/console   Download  
File: bin/console
Role: Example script
Content type: text/plain
Description: Example script
Class: Symfony Multi Tenant
Example of multi-tenant application using Symfony
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);
};