Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanediondev committed Jul 18, 2021
1 parent f5c6c16 commit 18a4449
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 56 deletions.
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
/phpunit.xml
###< symfony/phpunit-bridge ###

###> phpunit/phpunit ###
/phpunit.xml
.phpunit.result.cache
###< phpunit/phpunit ###

###> symfony/webpack-encore-bundle ###
/node_modules/
/public/build/
Expand All @@ -28,8 +33,3 @@ yarn-error.log
info.json
public/.htaccess
###< app ###

###> phpunit/phpunit ###
/phpunit.xml
.phpunit.result.cache
###< phpunit/phpunit ###
3 changes: 0 additions & 3 deletions config/routes/dev/framework.yaml

This file was deleted.

1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
convertDeprecationsToExceptions="false"
>
<php>
<ini name="display_errors" value="1" />
<ini name="error_reporting" value="-1" />
<server name="APP_ENV" value="test" force="true" />
<server name="SHELL_VERBOSITY" value="-1" />
Expand Down
21 changes: 4 additions & 17 deletions public/index.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
<?php

use App\Kernel;
use Symfony\Component\Dotenv\Dotenv;
use Symfony\Component\ErrorHandler\Debug;
use Symfony\Component\HttpFoundation\Request;

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

(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');

if ($_SERVER['APP_DEBUG']) {
umask(0000);

Debug::enable();
}

$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
59 changes: 28 additions & 31 deletions symfony.lock
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@
"version": "v5.0.5"
},
"symfony/console": {
"version": "5.1",
"version": "5.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "5.1",
"ref": "c6d02bdfba9da13c22157520e32a602dbee8a75c"
"version": "5.3",
"ref": "da0c8be8157600ad34f10ff0c9cc91232522e047"
},
"files": [
"bin/console"
Expand All @@ -232,7 +232,7 @@
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "4.1",
"ref": "f8863cbad2f2e58c4b65fa1eac892ab189971bea"
"ref": "0ce7a032d344fb7b661cd25d31914cd703ad445b"
},
"files": [
"config/packages/dev/debug.yaml"
Expand Down Expand Up @@ -287,19 +287,18 @@
"version": "v5.0.5"
},
"symfony/framework-bundle": {
"version": "5.2",
"version": "5.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "5.2",
"ref": "6ec87563dcc85cd0c48856dcfbfc29610506d250"
"version": "5.3",
"ref": "772b77cfb5017644547ef7f9364c54e4eb9a6c61"
},
"files": [
"config/packages/cache.yaml",
"config/packages/framework.yaml",
"config/packages/test/framework.yaml",
"config/preload.php",
"config/routes/dev/framework.yaml",
"config/routes/framework.yaml",
"config/services.yaml",
"public/index.php",
"src/Controller/.gitignore",
Expand Down Expand Up @@ -349,12 +348,12 @@
"version": "v5.0.5"
},
"symfony/monolog-bundle": {
"version": "3.3",
"version": "3.7",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "3.3",
"ref": "d7249f7d560f6736115eee1851d02a65826f0a56"
"version": "3.7",
"ref": "a7bace7dbc5a7ed5608dbe2165e0774c87175fe6"
},
"files": [
"config/packages/dev/monolog.yaml",
Expand All @@ -370,12 +369,12 @@
"version": "v5.3.3"
},
"symfony/phpunit-bridge": {
"version": "5.1",
"version": "5.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "5.1",
"ref": "bf16921ef8309a81d9f046e9b6369c46bcbd031f"
"version": "5.3",
"ref": "905679249e7b10f06c572917a9022a72cbfedc04"
},
"files": [
".env.test",
Expand Down Expand Up @@ -418,15 +417,14 @@
"version": "v5.0.5"
},
"symfony/routing": {
"version": "5.1",
"version": "5.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "5.1",
"ref": "b4f3e7c95e38b606eef467e8a42a8408fc460c43"
"version": "5.3",
"ref": "44633353926a0382d7dfb0530922c5c0b30fae11"
},
"files": [
"config/packages/prod/routing.yaml",
"config/packages/routing.yaml",
"config/routes.yaml"
]
Expand All @@ -435,12 +433,12 @@
"version": "v5.3.3"
},
"symfony/security-bundle": {
"version": "5.1",
"version": "5.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "5.1",
"ref": "0a4bae19389d3b9cba1ca0102e3b2bccea724603"
"version": "5.3",
"ref": "8b35bfc00a7716db4ca5a764a4b338476ca3a704"
},
"files": [
"config/packages/security.yaml"
Expand Down Expand Up @@ -474,12 +472,12 @@
"version": "v1.0.6"
},
"symfony/translation": {
"version": "3.3",
"version": "5.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "3.3",
"ref": "2ad9d2545bce8ca1a863e50e92141f0b9d87ffcd"
"version": "5.3",
"ref": "da64f5a2b6d96f5dc24914517c0350a5f91dee43"
},
"files": [
"config/packages/translation.yaml",
Expand All @@ -493,15 +491,14 @@
"version": "v5.0.5"
},
"symfony/twig-bundle": {
"version": "5.0",
"version": "5.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "5.0",
"ref": "fab9149bbaa4d5eca054ed93f9e1b66cc500895d"
"version": "5.3",
"ref": "3dd530739a4284e3272274c128dbb7a8140a66f1"
},
"files": [
"config/packages/test/twig.yaml",
"config/packages/twig.yaml",
"templates/base.html.twig"
]
Expand All @@ -515,7 +512,7 @@
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "4.3",
"ref": "d902da3e4952f18d3bf05aab29512eb61cabd869"
"ref": "3eb8df139ec05414489d55b97603c5f6ca0c44cb"
},
"files": [
"config/packages/test/validator.yaml",
Expand Down Expand Up @@ -548,7 +545,7 @@
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "1.9",
"ref": "9399a0bfc6ee7a0c019f952bca46d6a6045dd451"
"ref": "12e0ad8155c23b9f9290e8c49215d4ec921cdf71"
},
"files": [
"assets/app.js",
Expand Down
Empty file added translations/.gitignore
Empty file.

0 comments on commit 18a4449

Please sign in to comment.