Skip to content

Commit 1dab375

Browse files
Add initial set of files
0 parents  commit 1dab375

Some content is hidden

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

47 files changed

+11154
-0
lines changed

.env

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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=cd971d9b4d03171c6be1d20c0956ac5b
19+
###< symfony/framework-bundle ###
20+
21+
###> symfony/mailer ###
22+
# MAILER_DSN=smtp://localhost
23+
###< symfony/mailer ###
24+
25+
###> doctrine/doctrine-bundle ###
26+
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
27+
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
28+
#
29+
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
30+
# DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7"
31+
DATABASE_URL="postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
32+
###< doctrine/doctrine-bundle ###

.env.test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# define your env variables for the test env here
2+
KERNEL_CLASS='App\Kernel'
3+
APP_SECRET='$ecretf0rt3st'
4+
SYMFONY_DEPRECATIONS_HELPER=999999
5+
PANTHER_APP_ENV=panther
6+
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
###> symfony/phpunit-bridge ###
13+
.phpunit.result.cache
14+
/phpunit.xml
15+
###< symfony/phpunit-bridge ###
16+
17+
###> phpunit/phpunit ###
18+
/phpunit.xml
19+
.phpunit.result.cache
20+
###< phpunit/phpunit ###

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+
};

bin/phpunit

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
if (!ini_get('date.timezone')) {
5+
ini_set('date.timezone', 'UTC');
6+
}
7+
8+
if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
9+
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
10+
require PHPUNIT_COMPOSER_INSTALL;
11+
PHPUnit\TextUI\Command::main();
12+
} else {
13+
if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
14+
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
15+
exit(1);
16+
}
17+
18+
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
19+
}

composer.json

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"type": "project",
3+
"license": "proprietary",
4+
"minimum-stability": "stable",
5+
"prefer-stable": true,
6+
"require": {
7+
"php": ">=7.2.5",
8+
"ext-ctype": "*",
9+
"ext-iconv": "*",
10+
"composer/package-versions-deprecated": "1.11.99.3",
11+
"doctrine/annotations": "^1.0",
12+
"doctrine/doctrine-bundle": "^2.4",
13+
"doctrine/doctrine-migrations-bundle": "^3.1",
14+
"doctrine/orm": "^2.9",
15+
"phpdocumentor/reflection-docblock": "^5.2",
16+
"sensio/framework-extra-bundle": "^6.1",
17+
"symfony/asset": "5.3.*",
18+
"symfony/console": "5.3.*",
19+
"symfony/dotenv": "5.3.*",
20+
"symfony/expression-language": "5.3.*",
21+
"symfony/flex": "^1.3.1",
22+
"symfony/form": "5.3.*",
23+
"symfony/framework-bundle": "5.3.*",
24+
"symfony/http-client": "5.3.*",
25+
"symfony/intl": "5.3.*",
26+
"symfony/mailer": "5.3.*",
27+
"symfony/mime": "5.3.*",
28+
"symfony/monolog-bundle": "^3.1",
29+
"symfony/notifier": "5.3.*",
30+
"symfony/process": "5.3.*",
31+
"symfony/property-access": "5.3.*",
32+
"symfony/property-info": "5.3.*",
33+
"symfony/proxy-manager-bridge": "5.3.*",
34+
"symfony/runtime": "5.3.*",
35+
"symfony/security-bundle": "5.3.*",
36+
"symfony/serializer": "5.3.*",
37+
"symfony/string": "5.3.*",
38+
"symfony/translation": "5.3.*",
39+
"symfony/twig-bundle": "5.3.*",
40+
"symfony/validator": "5.3.*",
41+
"symfony/web-link": "5.3.*",
42+
"symfony/yaml": "5.3.*",
43+
"twig/extra-bundle": "^2.12|^3.0",
44+
"twig/twig": "^2.12|^3.0"
45+
},
46+
"require-dev": {
47+
"phpunit/phpunit": "^9.5",
48+
"symfony/browser-kit": "5.3.*",
49+
"symfony/css-selector": "5.3.*",
50+
"symfony/debug-bundle": "5.3.*",
51+
"symfony/maker-bundle": "^1.0",
52+
"symfony/phpunit-bridge": "^5.3",
53+
"symfony/stopwatch": "5.3.*",
54+
"symfony/web-profiler-bundle": "5.3.*"
55+
},
56+
"config": {
57+
"optimize-autoloader": true,
58+
"preferred-install": {
59+
"*": "dist"
60+
},
61+
"sort-packages": true
62+
},
63+
"autoload": {
64+
"psr-4": {
65+
"App\\": "src/"
66+
}
67+
},
68+
"autoload-dev": {
69+
"psr-4": {
70+
"App\\Tests\\": "tests/"
71+
}
72+
},
73+
"replace": {
74+
"symfony/polyfill-ctype": "*",
75+
"symfony/polyfill-iconv": "*",
76+
"symfony/polyfill-php72": "*"
77+
},
78+
"scripts": {
79+
"auto-scripts": {
80+
"cache:clear": "symfony-cmd",
81+
"assets:install %PUBLIC_DIR%": "symfony-cmd"
82+
},
83+
"post-install-cmd": [
84+
"@auto-scripts"
85+
],
86+
"post-update-cmd": [
87+
"@auto-scripts"
88+
]
89+
},
90+
"conflict": {
91+
"symfony/symfony": "*"
92+
},
93+
"extra": {
94+
"symfony": {
95+
"allow-contrib": false,
96+
"require": "5.3.*"
97+
}
98+
}
99+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy