Skip to content

Commit 1c02df2

Browse files
author
Misley Márton
committed
create repo
0 parents  commit 1c02df2

Some content is hidden

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

53 files changed

+7707
-0
lines changed

.env

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# In all environments, the following files are loaded if they exist,
2+
# the later 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/configuration.html#infrastructure-related-configuration
15+
16+
###> symfony/framework-bundle ###
17+
APP_ENV=dev
18+
APP_SECRET=afd322d466638b01b547e9ea2560d0b8
19+
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
20+
#TRUSTED_HOSTS='^localhost|example\.com$'
21+
###< symfony/framework-bundle ###
22+
23+
###> doctrine/doctrine-bundle ###
24+
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
25+
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
26+
# Configure your db driver and server_version in config/packages/doctrine.yaml
27+
DATABASE_URL=mysql://db_user:[email protected]:3306/db_name
28+
###< doctrine/doctrine-bundle ###
29+
30+
###> symfony/swiftmailer-bundle ###
31+
# For Gmail as a transport, use: "gmail://username:password@localhost"
32+
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
33+
# Delivery is disabled by default via "null://localhost"
34+
MAILER_URL=null://localhost
35+
###< symfony/swiftmailer-bundle ###

.env.test

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# define your env variables for the test env here
2+
KERNEL_CLASS='App\Kernel'
3+
APP_SECRET='s$cretf0rt3st'
4+
SYMFONY_DEPRECATIONS_HELPER=999999

.gitignore

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

bin/console

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
9+
set_time_limit(0);
10+
11+
require dirname(__DIR__).'/vendor/autoload.php';
12+
13+
if (!class_exists(Application::class)) {
14+
throw new RuntimeException('You need to add "symfony/framework-bundle" as a Composer dependency.');
15+
}
16+
17+
$input = new ArgvInput();
18+
if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) {
19+
putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);
20+
}
21+
22+
if ($input->hasParameterOption('--no-debug', true)) {
23+
putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');
24+
}
25+
26+
require dirname(__DIR__).'/config/bootstrap.php';
27+
28+
if ($_SERVER['APP_DEBUG']) {
29+
umask(0000);
30+
31+
if (class_exists(Debug::class)) {
32+
Debug::enable();
33+
}
34+
}
35+
36+
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
37+
$application = new Application($kernel);
38+
$application->run($input);

bin/phpunit

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
9+
if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {
10+
putenv('SYMFONY_PHPUNIT_VERSION=6.5');
11+
}
12+
if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {
13+
putenv('SYMFONY_PHPUNIT_REMOVE=');
14+
}
15+
if (false === getenv('SYMFONY_PHPUNIT_DIR')) {
16+
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
17+
}
18+
19+
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';

composer.json

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

0 commit comments

Comments
 (0)