Add boilerplate code, Docker environment, Makefile etc.
This commit is contained in:
parent
1e9d351173
commit
114a67dbe4
21 changed files with 3766 additions and 0 deletions
4
public/.htaccess
Normal file
4
public/.htaccess
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^ index.php [QSA,L]
|
||||
19
public/index.php
Normal file
19
public/index.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
use MailAccountAdmin\Dependencies;
|
||||
use MailAccountAdmin\Middlewares;
|
||||
use MailAccountAdmin\Routes;
|
||||
use MailAccountAdmin\Settings;
|
||||
use Slim\Factory\AppFactory;
|
||||
|
||||
$settings = new Settings();
|
||||
$container = Dependencies::createContainer($settings);
|
||||
$app = AppFactory::createFromContainer($container);
|
||||
|
||||
Middlewares::setMiddlewares($app);
|
||||
Routes::setRoutes($app);
|
||||
|
||||
$app->run();
|
||||
Loading…
Add table
Add a link
Reference in a new issue