Skip to content

Commit a53a4d0

Browse files
author
Misley Márton
committed
project created
0 parents  commit a53a4d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+6868
-0
lines changed

.env.dist

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This file is a "template" of which env vars need to be defined for your application
2+
# Copy this file to .env file for development, create environment variables when deploying to production
3+
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
4+
5+
###> symfony/framework-bundle ###
6+
APP_ENV=dev
7+
APP_SECRET=5aedb5d16add318cfb42752b23d54fed
8+
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
9+
#TRUSTED_HOSTS=localhost,example.com
10+
###< symfony/framework-bundle ###
11+
12+
###> doctrine/doctrine-bundle ###
13+
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
14+
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
15+
# Configure your db driver and server_version in config/packages/doctrine.yaml
16+
DATABASE_URL=mysql://db_user:[email protected]:3306/db_name
17+
###< doctrine/doctrine-bundle ###
18+
19+
###> symfony/swiftmailer-bundle ###
20+
# For Gmail as a transport, use: "gmail://username:password@localhost"
21+
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
22+
# Delivery is disabled by default via "null://localhost"
23+
MAILER_URL=null://localhost
24+
###< symfony/swiftmailer-bundle ###

.gitignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.idea
2+
3+
###> symfony/framework-bundle ###
4+
/.env
5+
/public/bundles/
6+
/var/
7+
/vendor/
8+
###< symfony/framework-bundle ###
9+
10+
###> symfony/phpunit-bridge ###
11+
.phpunit
12+
/phpunit.xml
13+
###< symfony/phpunit-bridge ###
14+
15+
###> symfony/web-server-bundle ###
16+
/.web-server-pid
17+
###< symfony/web-server-bundle ###

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
POC for https://github.com/symfony/symfony/issues/28296
2+
3+
project created from symfony/website-skeleton
4+
5+
works wit symfony/dependency-injection: 4.1.3
6+
doesn't work with symfony/dependency-injection: 4.1.4

bin/console

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
use App\Kernel;
5+
use Symfony\Bundle\FrameworkBundle\Console\Application;
6+
use Symfony\Component\Console\Input\ArgvInput;
7+
use Symfony\Component\Debug\Debug;
8+
use Symfony\Component\Dotenv\Dotenv;
9+
10+
set_time_limit(0);
11+
12+
require __DIR__.'/../vendor/autoload.php';
13+
14+
if (!class_exists(Application::class)) {
15+
throw new \RuntimeException('You need to add "symfony/framework-bundle" as a Composer dependency.');
16+
}
17+
18+
if (!isset($_SERVER['APP_ENV'])) {
19+
if (!class_exists(Dotenv::class)) {
20+
throw new \RuntimeException('APP_ENV environment variable is not defined. You need to define environment variables for configuration or add "symfony/dotenv" as a Composer dependency to load variables from a .env file.');
21+
}
22+
(new Dotenv())->load(__DIR__.'/../.env');
23+
}
24+
25+
$input = new ArgvInput();
26+
$env = $input->getParameterOption(['--env', '-e'], $_SERVER['APP_ENV'] ?? 'dev', true);
27+
$debug = (bool) ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env)) && !$input->hasParameterOption('--no-debug', true);
28+
29+
if ($debug) {
30+
umask(0000);
31+
32+
if (class_exists(Debug::class)) {
33+
Debug::enable();
34+
}
35+
}
36+
37+
$kernel = new Kernel($env, $debug);
38+
$application = new Application($kernel);
39+
$application->run($input);

bin/phpunit

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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_DEPRECATIONS_HELPER')) {
9+
// see https://symfony.com/doc/current/components/phpunit_bridge.html#making-tests-fail
10+
putenv('SYMFONY_DEPRECATIONS_HELPER=999999');
11+
}
12+
if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {
13+
putenv('SYMFONY_PHPUNIT_REMOVE=');
14+
}
15+
if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {
16+
putenv('SYMFONY_PHPUNIT_VERSION=6.5');
17+
}
18+
if (false === getenv('SYMFONY_PHPUNIT_DIR')) {
19+
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
20+
}
21+
22+
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';

composer.json

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"type": "project",
3+
"license": "proprietary",
4+
"require": {
5+
"php": "^7.1.3",
6+
"ext-ctype": "*",
7+
"ext-iconv": "*",
8+
"sensio/framework-extra-bundle": "^5.1",
9+
"symfony/asset": "*",
10+
"symfony/console": "*",
11+
"symfony/expression-language": "*",
12+
"symfony/flex": "^1.1",
13+
"symfony/form": "*",
14+
"symfony/framework-bundle": "*",
15+
"symfony/monolog-bundle": "^3.1",
16+
"symfony/orm-pack": "*",
17+
"symfony/process": "*",
18+
"symfony/security-bundle": "*",
19+
"symfony/serializer-pack": "*",
20+
"symfony/swiftmailer-bundle": "^3.1",
21+
"symfony/twig-bundle": "*",
22+
"symfony/validator": "*",
23+
"symfony/web-link": "*",
24+
"symfony/yaml": "*"
25+
},
26+
"require-dev": {
27+
"symfony/debug-pack": "*",
28+
"symfony/dotenv": "*",
29+
"symfony/maker-bundle": "^1.0",
30+
"symfony/profiler-pack": "*",
31+
"symfony/test-pack": "*",
32+
"symfony/web-server-bundle": "*"
33+
},
34+
"config": {
35+
"preferred-install": {
36+
"*": "dist"
37+
},
38+
"sort-packages": true
39+
},
40+
"autoload": {
41+
"psr-4": {
42+
"App\\": "src/"
43+
}
44+
},
45+
"autoload-dev": {
46+
"psr-4": {
47+
"App\\Tests\\": "tests/"
48+
}
49+
},
50+
"replace": {
51+
"paragonie/random_compat": "*",
52+
"symfony/polyfill-ctype": "*",
53+
"symfony/polyfill-iconv": "*",
54+
"symfony/polyfill-php71": "*",
55+
"symfony/polyfill-php70": "*",
56+
"symfony/polyfill-php56": "*"
57+
},
58+
"scripts": {
59+
"auto-scripts": {
60+
"cache:clear": "symfony-cmd",
61+
"assets:install %PUBLIC_DIR%": "symfony-cmd"
62+
},
63+
"post-install-cmd": [
64+
"@auto-scripts"
65+
],
66+
"post-update-cmd": [
67+
"@auto-scripts"
68+
]
69+
},
70+
"conflict": {
71+
"symfony/symfony": "*"
72+
},
73+
"extra": {
74+
"symfony": {
75+
"allow-contrib": false,
76+
"require": "4.1.*"
77+
}
78+
}
79+
}

0 commit comments

Comments
 (0)