Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3812561

Browse files
author
Kevin Auvinet
committed
Replace web-server-bundle by real stack nginx/php-fpm and a phpunit for test
1 parent 99b0a5d commit 3812561

File tree

15 files changed

+492
-527
lines changed

15 files changed

+492
-527
lines changed

‎.gitignore

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
21
###> symfony/framework-bundle ###
32
.env
43
/public/bundles/
54
/var/
65
/vendor/
76
###< symfony/framework-bundle ###
8-
9-
###> symfony/web-server-bundle ###
10-
.web-server-pid
11-
###< symfony/web-server-bundle ###
7+
###> symfony/phpunit-bridge ###
8+
.phpunit
9+
/phpunit.xml
10+
###< symfony/phpunit-bridge ###

‎bin/phpunit

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {
5+
echo "Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
6+
exit(1);
7+
}
8+
if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {
9+
putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');
10+
}
11+
if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {
12+
putenv('SYMFONY_PHPUNIT_VERSION=6.5');
13+
}
14+
if (false === getenv('SYMFONY_PHPUNIT_DIR')) {
15+
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
16+
}
17+
18+
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';

‎composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
2+
"name": "ke20/symfony4-dev-project",
3+
"description": "Base for a Symfony 4 project",
24
"type": "project",
35
"license": "proprietary",
46
"require": {
57
"php": "^7.0.8",
68
"symfony/console": "^3.3",
79
"symfony/flex": "^1.0",
810
"symfony/framework-bundle": "^3.3",
9-
"symfony/web-server-bundle": "^3.3",
1011
"symfony/yaml": "^3.3"
1112
},
1213
"require-dev": {
13-
"symfony/dotenv": "^3.3"
14+
"symfony/dotenv": "^3.3",
15+
"symfony/phpunit-bridge": "^3.3"
1416
},
1517
"config": {
1618
"preferred-install": {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /