Skip to content

Commit 8d1a9be

Browse files
author
T_S_V
committed
Started migration to Creator V2
1 parent b6969f4 commit 8d1a9be

Some content is hidden

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

51 files changed

+7199
-820
lines changed

.env

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# In all environments, the following files are loaded if they exist,
2+
# the latter taking precedence over the former:
3+
#
4+
# * .env contains default values for the environment variables needed by the app
5+
# * .env.local uncommitted file with local overrides
6+
# * .env.$APP_ENV committed environment-specific defaults
7+
# * .env.$APP_ENV.local uncommitted environment-specific overrides
8+
#
9+
# Real environment variables win over .env files.
10+
#
11+
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
12+
#
13+
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
14+
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
15+
16+
###> symfony/framework-bundle ###
17+
APP_ENV=dev
18+
APP_SECRET=cb506c203b8dbc1d9d2c212522c2f7b8
19+
###< symfony/framework-bundle ###

.gitignore

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
.vscode
1+
2+
###> symfony/framework-bundle ###
3+
/.env.local
4+
/.env.local.php
5+
/.env.*.local
6+
/config/secrets/prod/prod.decrypt.private.php
7+
/public/bundles/
8+
/var/
9+
/vendor/
10+
###< symfony/framework-bundle ###
11+
12+
.vscode

bin/console

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
use App\Kernel;
5+
use Symfony\Bundle\FrameworkBundle\Console\Application;
6+
7+
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
8+
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
9+
}
10+
11+
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
12+
13+
return function (array $context) {
14+
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
15+
16+
return new Application($kernel);
17+
};

composer.json

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,73 @@
1-
{}
1+
{
2+
"description": "SurveyJS PHP Service Example Application.",
3+
"homepage": "https://github.com/surveyjs/surveyjs-php",
4+
"type": "project",
5+
"license": "proprietary",
6+
"minimum-stability": "stable",
7+
"prefer-stable": true,
8+
"require": {
9+
"php": ">=8.0.2",
10+
"ext-ctype": "*",
11+
"ext-iconv": "*",
12+
"sensio/framework-extra-bundle": "^6.2",
13+
"symfony/console": "6.0.*",
14+
"symfony/dotenv": "6.0.*",
15+
"symfony/flex": "^2",
16+
"symfony/framework-bundle": "6.0.*",
17+
"symfony/runtime": "6.0.*",
18+
"symfony/yaml": "6.0.*"
19+
},
20+
"config": {
21+
"allow-plugins": {
22+
"composer/package-versions-deprecated": true,
23+
"symfony/flex": true,
24+
"symfony/runtime": true
25+
},
26+
"optimize-autoloader": true,
27+
"preferred-install": {
28+
"*": "dist"
29+
},
30+
"sort-packages": true
31+
},
32+
"autoload": {
33+
"psr-4": {
34+
"App\\": "src/"
35+
}
36+
},
37+
"autoload-dev": {
38+
"psr-4": {
39+
"App\\Tests\\": "tests/"
40+
}
41+
},
42+
"replace": {
43+
"symfony/polyfill-ctype": "*",
44+
"symfony/polyfill-iconv": "*",
45+
"symfony/polyfill-php72": "*",
46+
"symfony/polyfill-php73": "*",
47+
"symfony/polyfill-php74": "*",
48+
"symfony/polyfill-php80": "*"
49+
},
50+
"scripts": {
51+
"start": "php -S localhost:8000 -t public",
52+
"test": "phpunit",
53+
"auto-scripts": {
54+
"cache:clear": "symfony-cmd",
55+
"assets:install %PUBLIC_DIR%": "symfony-cmd"
56+
},
57+
"post-install-cmd": [
58+
"@auto-scripts"
59+
],
60+
"post-update-cmd": [
61+
"@auto-scripts"
62+
]
63+
},
64+
"conflict": {
65+
"symfony/symfony": "*"
66+
},
67+
"extra": {
68+
"symfony": {
69+
"allow-contrib": false,
70+
"require": "6.0.*"
71+
}
72+
}
73+
}

0 commit comments

Comments
 (0)